Skip to content

New functionality: save and load configuration #7

@JulienLebranchu

Description

@JulienLebranchu

Develop a default directory to store the configuration file

${OS.HOME}/.appconfig/${PROJECT_NAME}/configuration_file.yml

${OS.HOME}: environment variable for the home directory
${PROJECT_NAME}: the name of the projet

Examples :

MacOS

/Users/jlebranc/.appconfig/db/configuration_file.yml
/Users/jlebranc/.appconfig/fishi/configuration_file.yml

Unix

/home/jlebranc/.appconfig/db/configuration_file.yml
/home/jlebranc/.appconfig/fishi/configuration_file.yml

Windows

C:\Users\jlebranc\.appconfig\db\configuration_file.yml
C:\Users\jlebranc\.appconfig\fishi\configuration_file.yml

New function

You should develop the function below:

create_configuration_file(PROJECT_NAME, configuration_filename = "configuration_file.yml", path="OS.HOME/.appconfig/")

load_configuration_file(PROJECT_NAME, configuration_filename = "configuration_file.yml", path="OS.HOME/.appconfig/")

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions