objfw-new(1)

πŸ“¦
version 1.5.7 Β· 2 versions
, in alpine 3.24, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– 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. πŸ™ˆ
  • -p property, --property=property β€” Add a property to the class. See examples for syntax. yes bestie, the syntax lives down in EXAMPLES, go peek. πŸ‘€
  • -s class, --superclass=class β€” okay so this one is on the list, it's right there in the synopsis taking a class... 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. πŸ’…βœ¨πŸ¦‹