Goal
To make it easier to list and load projects.
Motivation
- Currently there are no way of listing projects in the database when using the CLI.
- When using
avalon --load, the name is taken from the current working directory, so there is no way of loading a differently named project.
- When using
avalon --load it would be nice to display available projects to load.
Implementation
- Add a command
avalon --projects. Or some other flag?
- Make
avalon --load accept a project name input, so loading a project will be avalon --load myProject. This input could be optional to allow existing behaviour of loading the name of the current working directory.
Lastly could also have the command be something like avalon --load --project_name myProject. Although personally I feel its unnecessarily long.
- The current message when not finding a project is:
Loading .inventory.toml and .config.toml..
'mySecondProject' not found, try --init to start a new project.
Suggestion:
Loading .inventory.toml and .config.toml..
'mySecondProject' not found, try --init to start a new project, or load a project from the database.
Projects:
- myProject
- mySecondProject