objfw-new(1)
π objfw-new β create source code from templates π
okay bestie, welcome to objfw-new(1) from the General Commands Manual (section 1, we're fancy like that) β¨
πΈ NAME πΈ
objfw-new β it makes source code out of templates. that's the whole gig. it's giving scaffolding, it's giving "I don't feel like typing boilerplate," and honestly? iconic. π
β¨ SYNOPSIS β¨
objfw-new --app|--class|--test [--superclass=class]
[--property=property] name
so you pick one of the big three (--app, --class, --test), you can optionally toss in a --superclass=class and/or a --property=property, and then you hand it a name. that's the vibe check. π
π¦ DESCRIPTION π¦
objfw-new is a program which creates source code from templates.
fr fr, that's literally it. it takes templates, it takes your name, and it spits out source code. no cap. π«Ά
π OPTIONS π
-a,--appβ Create a new app. new app energy, main character origin story, slay. β¨-c,--classβ Create a new class. a whole new type just dropped. π-h,--helpβ Show the help. when in doubt, ask for help, we love a queen who asks questions. π-pproperty,--property=propertyβ Add a property to the class. See examples for syntax. yes bestie, the syntax lives down in EXAMPLES, go peek. π-sclass,--superclass=classβ okay so this one is on the list, it's right there in the synopsis taking aclass... and the page gives us zero description text for it. not me being unable to invent facts!! I am simply reporting what's here and not one thing more. it takes a class. that's what we know. π«-t,--testβ Create a new test. test your code bestie, your future self will be obsessed with you. π
π EXAMPLES π
Create a new application:
objfw-new -a MyApp
Create a new class Dog with a property name and superclass Animal:
objfw-new -c -s Animal -p '(copy, nonatomic) OFString *name' Dog
look at that -p syntax btw β that quoted string is exactly the shape it wants. keep the quotes, keep the commas, keep it verbatim, don't freestyle it. π
Create a new test:
objfw-new -t DogTest
π₯ SEE ALSO π₯
reminder bestie: every flag, every argument, every example up there is exactly as written. no vibes-based edits to your commands, only vibes-based edits to the prose. π
and that's the page!! from the General Commands Manual, objfw-new(1) β no date, no version line, just the name and the section, so that's all we're signing off with. periodt. π
β¨π¦
π¦ where this page comes from
- alpine 3.24: objfw-doc 1.5.7-r0 Β· LGPL-3.0-only
- epel 10: libobjfw-devel 1.5.7-1.el10_3 Β· LGPL-3.0-only
- epel 9: libobjfw-devel 1.5.7-1.el9 Β· LGPL-3.0-only
- fedora 43: libobjfw-devel 1.5.7-1.fc43 Β· LGPL-3.0-only
- fedora 43: libobjfw-devel 1.5.7-1.fc43 Β· LGPL-3.0-only
- fedora 44: libobjfw-devel 1.5.1-1.fc44 Β· LGPL-3.0-only
- fedora 44: libobjfw-devel 1.5.1-1.fc44 Β· LGPL-3.0-only
- fedora 44: libobjfw-devel 1.5.7-1.fc44 Β· LGPL-3.0-only
- fedora 44: libobjfw-devel 1.5.7-1.fc44 Β· LGPL-3.0-only
- nixos 26.05: objfw 1.5.2
- nixpkgs unstable: objfw 1.5.7
- ubuntu resolute: libobjfw1-dev 1.4.4-1 Β· LGPL-3.0-only
- ubuntu stonking: libobjfw1-dev 1.5.7-1 Β· LGPL-3.0-only
- Copyright (c) 2008-2026 Jonathan Schleifer <js@nil.im>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms