Repository navigation
CLI Flag serveur
Manech Dubreil edited this page Oct 21, 2026
·
1 revision
Status: ✅ Implemented (#44) — HTTP server coming with #91
Runs the binary in server mode instead of the CLI.
transf-orm --serveur
transf-orm --serveur --port 8080- For now, it only prints
Starting transf-orm server on port <port>on stderr and exits. The HTTP bootstrap (axum,/health,--ip/--host) comes with #91. - Cannot be combined with a CLI command (
transf-orm --serveur convert ...) nor with--cli: both print an error and exit with status 2. - Enables the server-only flag
--port. - Reads the same global flags as the CLI, e.g.
--verboseand--debug.
- Declared in the
Argsstruct ofcrates/transf-orm/src/main.rs.dispatchchecks for a command (ErrorKind::ArgumentConflict) and then callstransf_orm_server::run(&config, server_args). -
crates/server/src/lib.rs—run(config, args). - Tests:
serveur_flag_starts_server,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 |