jgabaut / invil

A Rust implementation of amboso.
https://github.com/jgabaut/amboso
GNU General Public License v3.0
3 stars 0 forks source link

[FEATURE] Use passed directory name as target for init subcommand #123

Closed jgabaut closed 5 months ago

jgabaut commented 5 months ago

The basename of the directory passed to init subcommand could be used as the target executable and variable names in the generated files for the project:

Current behaviour (target name is hello_world and variables are named as such) could be maintained under --strict, or something similar.

Should update handle_init_subcommand() in core.rs to use the passed name.

jgabaut commented 5 months ago

This was added with 0.2.10, but logic to handle --strict should be added.