Last active
May 29, 2023 08:15
-
-
Save nikoheikkila/e65316f8ebb419007d6089be6d53f2a2 to your computer and use it in GitHub Desktop.
Global Task definitions for handling routine tasks across my computers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USAGE | |
# | |
# 1. Install Taskfile from <https://taskfile.dev> | |
# 2. Save this file to $HOME/Taskfile.yml | |
# 3. Run `task -g <name of the task>` | |
version: '3' | |
vars: | |
EDITOR: nvim # Set this to your preferred text editor | |
tasks: | |
edit: | |
desc: Edits the current Taskfile definition using a text editor | |
interactive: true | |
cmds: | |
- "{{ .EDITOR }} {{ .HOME }}/Taskfile.yml" | |
upgrade: | |
desc: Updates all the dependencies and tooling | |
cmds: | |
- task: upgrade:linux | |
- task: upgrade:mac | |
- task: upgrade:windows | |
- task: post:upgrade | |
upgrade:mac: | |
internal: true | |
platforms: [darwin] | |
cmds: | |
- brew upgrade | |
upgrade:linux: | |
internal: true | |
platforms: [linux] | |
cmds: | |
- sudo apt update | |
- sudo apt full-upgrade | |
- sudo apt autoremove | |
upgrade:windows: | |
internal: true | |
platforms: [windows] | |
cmds: | |
- scoop update -a | |
post:upgrade: | |
internal: true | |
silent: true | |
cmds: | |
- echo "Upgrade completed!" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment