aviaviavi / confetti

Small CLI tool for configuration file management and swapping
MIT License
33 stars 4 forks source link

Global config targets that are common to all groups #2

Closed aviaviavi closed 7 years ago

dmarcoux commented 7 years ago

This could be achieved by having a top level key common, like this:

common:
  - ~/.abc
  - ~/.def
groups:
  - name: aws
    targets:
      - ~/.aws/credentials
  - name: dotfiles
    targets:
      - ~/.spacemacs
    search_paths:
      - path: ~/dotfiles
        recursive: true
aviaviavi commented 7 years ago

@dmarcoux I like it. While we're at it, I'd probably take it one small step further so we could do something like:

common:
  targets:
    - ~/.abc
    - ~/.def
  search_paths:
    - path: ~/a
      recursive: false
aviaviavi commented 7 years ago

resolved with version 0.3