MLH-Fellowship/autoflow

Global configurations

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.

Let the user set global configurations for the AutoFlow CLI.

  • Default directory for all projects
  • Default text editor

Describe the solution you'd like

The user should be able to set up af config with the following flags:

  • --default_dir : path_to_default_directory

  • --default_editor: name of default editor

  • Set up an Autoflow class in __init__.py.

  • Initialize the class with a fixed default directory, say ~ and a fixed editor in case the user doesn't enter the values.

  • Parse the flags entered (it's not necessary for the user to enter all 2 flags)

  • Check if the path is valid.

  • Change the parameters in the class autoflow

  • Give a confirmation text to the user about what the default_dir is and the default_editor is.

Additional context

  • Look up Click in Python