Skip to content

new command ​

Create a project: a module in src/, a program in app/, a test in test/, a fobos with debug and release modes and a [test] section, a .gitignore and a git repository (nothing committed). An existing file is never overwritten.

bash
fobis new demo                  # ./demo: a module, a program, a test
fobis new kit --lib             # a library: no program, static and shared library modes
fobis new . --name my_tool      # fill this directory
fobis new demo --scaffold       # then fobis scaffold init --yes: CI, docs, release scripts

How to use it, with examples: Building.

All options ​

Arguments: PATH

OptionValueDefaultDescription
--nameTEXTFortran name of the project [default: the directory's name].
--libA library: no program, static and shared library modes.
--compilerTEXTgnuCompiler of the modes.
--scaffoldThen run 'fobis scaffold init --yes': CI, docs, release scripts.
--no-gitDo not initialise a git repository.
--jsonEmit structured JSON to stdout instead of human-readable output (useful for scripting / agents)