Skip to content

Instantly share code, notes, and snippets.

@lodejard
Last active October 19, 2018 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lodejard/c0f446d90deca0359e7a98d2e58f7367 to your computer and use it in GitHub Desktop.
Save lodejard/c0f446d90deca0359e7a98d2e58f7367 to your computer and use it in GitHub Desktop.
Switching config
foo:x=hello
foo:bar:y=world
; an one section
[foo]
x=hello
bar:y=world
; an multiple sections
[foo]
x=hello
[foo:bar]
y=world
; one section switching values
[foo]
x=hello
x_switch:prod=prodhello
bar:y=world
bar:y_switch:prod=prodworld
; multiple sections switching values
[foo]
x=hello
x_switch:prod=prodhello
[foo:bar]
y=world
y_switch:prod=prodworld
; multiple sections switching sections
[foo]
x=hello
x_switch:prod=prodhello
[foo:bar]
y=world
[foo:bar_switch:prod]
y=prodworld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment