JingJingJingJing / Sira

This is sira
2 stars 1 forks source link

User configuration - reads the configuration file #61

Open kiddliu opened 6 years ago

kiddliu commented 6 years ago

As a user, I want Sira 2.0 reads the configuration file to bypass setting up running environment.

The name of the configuration file is ".sirarc", and by default it's hidden. There are 3 kinds of the configuration file:

Sira locates a valid Local configuration file by looking at the current directory and all its parent. If none is located, then it loads Global configuration, which resides in the user profile directory. If there's no Global configuration defined or it's invalid, Sira uses its built-in configuration.

JingJingJingJing commented 6 years ago

@kiddliu Can user modify global config by using --init command? When Sira 2.0 will make local config file and global config file?

kiddliu commented 6 years ago

@JingJingJingJing for now users can manually move the configuration file to the user profile folder at will.

JingJingJingJing commented 6 years ago

@kiddliu Cause built-in configuration does not contain credential infomation, should ask for user username and password when the code decides to use built-in configuraion and there isn't account info in windows credential manager.

kiddliu commented 6 years ago

@JingJingJingJing I'm writing a new task for this issue