Open kiddliu opened 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?
@JingJingJingJing for now users can manually move the configuration file to the user profile folder at will.
@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.
@JingJingJingJing I'm writing a new task for this issue
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.