Skip to content

List/Load Projects #4

@tokejepsen

Description

@tokejepsen

Goal

To make it easier to list and load projects.

Motivation

  1. Currently there are no way of listing projects in the database when using the CLI.
  2. When using avalon --load, the name is taken from the current working directory, so there is no way of loading a differently named project.
  3. When using avalon --load it would be nice to display available projects to load.

Implementation

  1. Add a command avalon --projects. Or some other flag?
  2. 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.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions