From 45915bf0ed01fb2795c771321c32cf4c34f9589a Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sat, 23 May 2020 11:07:32 -0300 Subject: [PATCH 1/6] taskfile.dev: Remove tracking stuff --- docs/index.html | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/docs/index.html b/docs/index.html index 4a832385b1..b5508f0656 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,23 +8,6 @@ -
@@ -32,7 +15,6 @@ window.$docsify = { name: 'Task', repo: 'go-task/task', - ga: 'UA-126286662-1', themeColor: '#00add8', loadSidebar: true, auto2top: true, @@ -41,7 +23,6 @@ } - From bfcaa7a443ae08382ee05f03d499d3e51363a319 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sat, 23 May 2020 13:43:24 -0300 Subject: [PATCH 2/6] taskfile.dev: Install Docsify Tabs plugin --- docs/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/index.html b/docs/index.html index b5508f0656..a88291e384 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,6 +24,7 @@ + From 329902f0db4c44dc86c1552cd0c637d7bf273f22 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sat, 23 May 2020 13:43:57 -0300 Subject: [PATCH 3/6] taskfile.dev: Improve the installation page by using tabs --- docs/installation.md | 90 +++++++++++++++++++++++++++----------------- 1 file changed, 55 insertions(+), 35 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 876d0060f0..da7e55af22 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -1,12 +1,12 @@ # Installation -## Binary +Task offers many installation methods. Check out the available methods below. -Or you can download the binary from the [releases][releases] page and add to -your $PATH. DEB and RPM packages are also available. -The `task_checksums.txt` file contains the sha256 checksum for each file. +## Package Managers -## Homebrew + + +#### **Homebrew** If you're on macOS or Linux and have [Homebrew][homebrew] installed, getting Task is as simple as running: @@ -15,19 +15,17 @@ Task is as simple as running: brew install go-task/tap/go-task ``` -> This installation method is only currently supported on amd64 architectures. - -## Snap +#### **Snap** -Task is available for [Snapcraft][snapcraft], but keep in mind that your +Task is available in [Snapcraft][snapcraft], but keep in mind that your Linux distribution should allow classic confinement for Snaps to Task work right: ```bash -sudo snap install task +sudo snap install task --classic ``` -## Scoop +#### **Scoop** If you're on Windows and have [Scoop][scoop] installed, use `extras` bucket to install Task like: @@ -40,7 +38,7 @@ scoop install task This installation method is community owned. After a new release of Task, it may take some time until it's available on Scoop. -## Arch Linux +#### **AUR** If you're on Arch Linux you can install Task from [AUR](https://aur.archlinux.org/packages/taskfile-git) using your favorite @@ -53,36 +51,25 @@ yay -S taskfile-git This installation method is community owned, but since it's `-git` version of the package, it's always latest available version based on the Git repository. -## Go + -Task now uses [Go Modules](https://github.com/golang/go/wiki/Modules), which -means you may have trouble compiling it on older Go versions or using -`$GOPATH`. +## Get The Binary -For CI environments we recommend using the [Install Script](#install-script) -instead, which is faster and more stable, since it'll just download the latest -released binary, instead of compiling the edge (master branch) version. + -Installing in another directory: +#### **Binary** -```bash -git clone https://github.com/go-task/task -cd task +You can download the binary from the [releases page on GitHub][releases] and +add to your `$PATH`. -# compiling binary to $GOPATH/bin -go install -v ./cmd/task +DEB and RPM packages are also available. -# compiling it to another location -# use -o ./task.exe on Windows -go build -v -o ./task ./cmd/task -``` - -Both methods requires having the [Go][go] environment properly setup locally. +The `task_checksums.txt` file contains the SHA-256 checksum for each file. -## Install script +#### **Install Script** We also have a [install script][installscript], which is very useful on -scenarios like CIs. Many thanks to [godownloader][godownloader] for allowing +scenarios like CIs. Many thanks to [GoDownloader][godownloader] for allowing easily generating this script. ```bash @@ -91,7 +78,7 @@ curl -sL https://taskfile.dev/install.sh | sh > This method will download the binary on the local `./bin` directory by default. -## GitHub Actions +#### **GitHub Actions** If you want to install Task in GitHub Actions you can try using [this action](https://github.com/arduino/actions/tree/master/setup-taskfile) @@ -104,8 +91,41 @@ by the Arduino team: This installation method is community owned. + + +## Build From Source + + + +#### **Go Modules** + +First, make sure you have [Go][go] properly installed and setup. + +Task requires [Go Modules](https://github.com/golang/go/wiki/Modules) and +doesn't officially support installing via `go get` anymore. + +Installing in another directory: + +```bash +git clone https://github.com/go-task/task +cd task + +# Compiling binary to $GOPATH/bin +go install -v ./cmd/task + +# Compiling it to another location. +# Use -o ./task.exe on Windows. +go build -v -o ./task ./cmd/task +``` + +> For CI environments we recommend using the [Install Script](#get-the-binary) +> instead, which is faster and more stable, since it'll just download the latest +> released binary, instead of compiling the edge (master branch) version. + + + [go]: https://golang.org/ -[snapcraft]: https://snapcraft.io/ +[snapcraft]: https://snapcraft.io/task [homebrew]: https://brew.sh/ [installscript]: https://github.com/go-task/task/blob/master/install-task.sh [releases]: https://github.com/go-task/task/releases From 6141ba84ce0bb5391404f9aa6621a21cb41824be Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sat, 23 May 2020 14:00:38 -0300 Subject: [PATCH 4/6] taskfile.dev: Switch completely from unpkg.com to jsdelivr.net --- docs/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/index.html b/docs/index.html index a88291e384..73eff81a91 100644 --- a/docs/index.html +++ b/docs/index.html @@ -6,7 +6,7 @@ - + @@ -22,10 +22,10 @@ subMaxLevel: 3 } - - - - - + + + + + From bf64259af39a1821b0562fa232b0f93929b91775 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sat, 23 May 2020 14:13:13 -0300 Subject: [PATCH 5/6] taskfile.dev: Add note about parallel deps Reference: #331 --- docs/usage.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/usage.md b/docs/usage.md index 8743c2956a..ae612ee90e 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -152,6 +152,10 @@ If the directory doesn't exist, `task` creates it. ## Task dependencies +> Dependencies run in parallel, so dependencies of a task shouldn't depend one +> another. If you want to force tasks to run serially take a look at the +> [Calling Another Task](#calling-another-task) section below. + You may have tasks that depend on others. Just pointing them on `deps` will make them run automatically before running the parent task: From 10986d3a7c4aab26134de5cf31caf64bd2ce3311 Mon Sep 17 00:00:00 2001 From: Ron van der Heijden Date: Sat, 13 Jun 2020 17:01:14 +0200 Subject: [PATCH 6/6] Accept : multiple times --- completion/zsh/_task | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completion/zsh/_task b/completion/zsh/_task index f2bd81de01..48777e4b98 100755 --- a/completion/zsh/_task +++ b/completion/zsh/_task @@ -5,7 +5,7 @@ function __list() { local -a scripts if [ -f Taskfile.yml ]; then - scripts=($(task -l | sed '1d' | sed 's/^\* //' | awk '{ print $1 }' | sed 's/:$//' | sed 's/:/\\:/')) + scripts=($(task -l | sed '1d' | sed 's/^\* //' | awk '{ print $1 }' | sed 's/:$//' | sed 's/:/\\:/g')) _describe 'script' scripts fi }