CLI: save "current" project and codeset as persistent state #118
Labels
area/cli
CLI features and behavior
enhancement
New feature or request
good first issue
Good for newcomers
Projects
The CLI allows reading global options like URL, HTTP timeout and verbosity from a
.fuseml/config.yaml
configuration file. The same configuration file can be leveraged to store information that could be considered part of the CLI's state, such as:Storing this information as persistent state allows the CLI to auto-fill some command parameters based on the "current" context, which makes it easier for CLI users to run repetitive commands, such as pushing codeset updates. The following context managing commands need to be implemented:
fuseml project list
- lists all available projects (currently only represented as gitea orgs)fuseml project set <project-name>
- sets the "current" projectfuseml codeset set <codeset-name>
- sets the "current" codeset in the "current project"Other commands related to codesets and projects should be modified so that they use the "current" project and "current" codeset if they are not explicitly supplied as arguments, as well as change the output to indicate if a displayed codeset is active or not.
The text was updated successfully, but these errors were encountered: