-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config format #360
Comments
Do we really need to rework the config structure? As far as I see the |
Also in your example the |
I'd like the make sure the code more transparent and clear - maybe you are onto something. Perhaps make a PR? |
You're right
I added a variant for remotes: ~/work/:
libtmux:
vcs: 'git'
options:
origin:
url: 'https://github.com/vcs-python/vcspull.git' Long form: libtmux_mirrored_remotes:
vcs: 'git'
options:
origin:
fetch: 'https://github.com/vcs-python/vcspull.git'
push: 'git+ssh//[email protected]/vcs-python/vcspull.git' |
My backstory is back when I created tmuxp/vcspull/etc years ago. I took a lot of inspiration from a config management tool called salt states, see their git. The more "magic" and "hydration" there is, the more pain it is to debug. you're feedback is very welcome. I'm easy either way as far as what the structure looks like (or whether it changes substantially) |
I'm trying. I'm not sure if I want the path expansion to happen during config loading or when we loop over the entries anyway to update them. |
Chicken or egg. |
~/work/:
libtmux:
vcs: 'git'
remotes:
origin: 'https://github.com/vcs-python/vcspull.git'
libtmux_mirrored_remotes:
vcs: 'git'
remotes:
origin: 'ssh//[email protected]/vcs-python/vcspull.git'
fetch: 'https://github.com/vcs-python/vcspull.git'
MySVNProject:
vcs: 'svn'
url: http://unladen-swallow.googlecode.com/svn/trunk/ |
We should also think of adding some kind of config validation between reading the config from the file and actually using it. |
Eliminate shorthands
One config format
The text was updated successfully, but these errors were encountered: