Skip to content

Commit

Permalink
chore: rename YAML key task.task -> task.name
Browse files Browse the repository at this point in the history
  • Loading branch information
femnad committed Jan 3, 2024
1 parent 88cf454 commit 49ce89f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions contrib/simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ rust:
cmd: alacritty --version

task:
- task: Install Mullvad app
- name: Install Mullvad app
when: is-ubuntu
unless:
cmd: dpkg-query --list mullvad-vpn
Expand All @@ -72,7 +72,7 @@ task:
apt install -y /tmp/MullvadVPN-2023.3_amd64.deb
rm /tmp/MullvadVPN-2023.3_amd64.deb
sudo: true
- task: Install Mullvad app
- name: Install Mullvad app
when: is-fedora
steps:
- name: cmd
Expand Down
2 changes: 1 addition & 1 deletion entity/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (Step) DefaultVersionCmd() string {

type Task struct {
unless.BasicUnlessable
Desc string `yaml:"task"`
Desc string `yaml:"name"`
Steps []Step `yaml:"steps"`
When string `yaml:"when"`
Unless unless.Unless `yaml:"unless"`
Expand Down
2 changes: 1 addition & 1 deletion tests/config/test-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ release:
post: split 2 | cut 1 | cut -1

task:
- task: Clone chezmoi
- name: Clone chezmoi
unless:
stat: ~/.local/share/chezmoi
steps:
Expand Down
2 changes: 1 addition & 1 deletion tests/config/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ release:
post: split 2 | cut 1 | cut -1

task:
- task: Clone chezmoi
- name: Clone chezmoi
unless:
stat: ~/.local/share/chezmoi
steps:
Expand Down

0 comments on commit 49ce89f

Please sign in to comment.