Closed jmalloc closed 3 years ago
The config gets normalized, which includes adding implicit entries such as the github
clone source, and adding $GOPATH/src
to the index paths. Ideally, however, when saving config files these implicit entries wouldn't be included.
Either the actual config needs to be made available, as well as the normalized one, or the in-memory state of the config should always reflect the actual configuration file, and methods added to Config
to get the "effective" values.
I haven't found these necessary. The config files have remained very static and easy to edit manually. For the sake of simplicity I think I will remove the source ls
command and close this issue.
source ls
source add <name> <url template>
source rm <name>
index path ls
index path add <path>
index path rm <path>