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 scriptsHow to use it, with examples: Building.
All options
Arguments: PATH
| Option | Value | Default | Description |
|---|---|---|---|
--name | TEXT | Fortran name of the project [default: the directory's name]. | |
--lib | A library: no program, static and shared library modes. | ||
--compiler | TEXT | gnu | Compiler of the modes. |
--scaffold | Then run 'fobis scaffold init --yes': CI, docs, release scripts. | ||
--no-git | Do not initialise a git repository. | ||
--json | Emit structured JSON to stdout instead of human-readable output (useful for scripting / agents) |