Repository navigation
CLI Flag cli
Manech Dubreil edited this page Oct 21, 2026
·
1 revision
Status: ✅ Implemented (#44)
Runs the binary in CLI mode. This is the default mode, so the flag can be omitted.
transf-orm # interactive CLI (same as transf-orm --cli)
transf-orm --cli # interactive CLI
transf-orm [--cli] <command> ... # run one command, e.g. transf-orm convert schema.prisma- With a command, runs that command (see
convert). - Without a command, starts the interactive mode. It is not implemented yet and only prints
Interactive mode is not implemented yet (see #48). - Conflicts with
--serveur:--cli --serveurprints an error and exits with status 2.
- Declared in the
Argsstruct ofcrates/transf-orm/src/main.rswithconflicts_with = "serveur". -
dispatchcallstransf_orm_cli::run(&config, command)whenever--serveuris absent. - Tests:
no_argument_runs_interactive_cli,cli_flag_runs_interactive_cli,cli_mode_runs_commands,conflicting_modes_exit_with_2incrates/transf-orm/tests/dispatch.rs.
← CLI
|
Manech DUBREIL dmanech@gmail.com |
Timéo TRÉGAROT timeo.tregarot@epitech.eu |
Aymeric JOUANNET-MIMY aymeric.jouannet-mimy@epitech.eu |
Esteban BOUYAULT-MIMY esteban.bouyault-yvanez@epitech.eu |
Arthur DRAHY arthur.drahy@epitech.eu |