Skip to content

Commit

Permalink
Update README (new config structure)
Browse files Browse the repository at this point in the history
  • Loading branch information
timopruesse committed Jun 24, 2022
1 parent f744a0c commit 89647ed
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,22 @@ temp_dir: "~/my_temp" # defaults to "~/.machine_setup"
default_shell: "zsh" # defaults to "bash"
tasks:
my_task1:
copy:
src: "./src/files"
target: "/tmp/target"
os: ["linux", "windows"]
commands:
- copy:
src: "./src/files"
target: "/tmp/target"
- copy:
src: "./src/files_2"
target: "/tmp/target"

my_task2:
shell: "sudo apt-get install git -y"

symlink:
src: "./src/config"
target: "~/.dotfiles"
os: ["linux"]
commands:
- shell: "sudo apt-get install git -y"
- symlink:
src: "./src/config"
target: "~/.dotfiles"
```
### Extend a configuration
Expand All @@ -93,11 +99,12 @@ You could also only execute a single task by providing the `task` argument.
```yaml
tasks:
my_other_config:
run:
commands:
install: "machine_setup install -c ./my_other_config.yaml"
update: "machine_setup update -c ./my_other_config.yaml"
uninstall: "machine_setup uninstall -c ./my_other_config.yaml"
commands:
- run:
commands:
install: "machine_setup install -c ./my_other_config.yaml"
update: "machine_setup update -c ./my_other_config.yaml"
uninstall: "machine_setup uninstall -c ./my_other_config.yaml"
```

### Available config commands
Expand Down

0 comments on commit 89647ed

Please sign in to comment.