Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility of specifying config file through the CLI #81

Open
shilangyu opened this issue Oct 11, 2022 · 0 comments
Open

Add possibility of specifying config file through the CLI #81

shilangyu opened this issue Oct 11, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request p: leancode_contracts_generator Concerns package leancode_contracts_generator

Comments

@shilangyu
Copy link
Contributor

shilangyu commented Oct 11, 2022

Problem

Currently the config file name (and path) is hardcoded for the CLI. This means that a user can only use a single config file in a given project. While the config file allows for gathering contracts from different sources, it still outputs everything to a single file. There are use cases where one would prefer to output contracts into two separate files.

Proposed solution

Introduce a new CLI flag (both for the generation and init subcommands), --config which will point to a place where the config file is/should be located. The currently hardcoded config file path should be the default value for this flag.

This way, one can have multiple config files and just point to them when generating different contracts.

@shilangyu shilangyu added enhancement New feature or request p: leancode_contracts_generator Concerns package leancode_contracts_generator labels Oct 11, 2022
@shilangyu shilangyu self-assigned this Oct 11, 2022
@shilangyu shilangyu changed the title Add possibility to specify config file through the CLI Add possibility of specifying config file through the CLI Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p: leancode_contracts_generator Concerns package leancode_contracts_generator
Projects
None yet
Development

No branches or pull requests

1 participant