mirror of
https://github.com/go-task/task.git
synced 2025-05-31 23:19:42 +02:00
Merge branch 'master' into v3
This commit is contained in:
commit
8137517d93
@ -5,7 +5,7 @@ function __list() {
|
|||||||
local -a scripts
|
local -a scripts
|
||||||
|
|
||||||
if [ -f Taskfile.yml ]; then
|
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
|
_describe 'script' scripts
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -6,25 +6,8 @@
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||||
<meta name="description" content="A task runner / simpler Make alternative written in Go">
|
<meta name="description" content="A task runner / simpler Make alternative written in Go">
|
||||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||||
<link rel="stylesheet" href="//unpkg.com/docsify-themeable/dist/css/theme-simple.css">
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-themeable/dist/css/theme-simple.css">
|
||||||
<meta name="google-site-verification" content="VGAYkbdmuaciIDGkBe-eAg9yfZg0C6ostgonbGxxOa0" />
|
<meta name="google-site-verification" content="VGAYkbdmuaciIDGkBe-eAg9yfZg0C6ostgonbGxxOa0" />
|
||||||
<script>
|
|
||||||
var SeedAndDewConfig = {};
|
|
||||||
(function() {
|
|
||||||
SeedAndDewConfig['adClass'] = "snd-ad";
|
|
||||||
/* * * DON'T EDIT BELOW THIS LINE * * */
|
|
||||||
SeedAndDewConfig['projectId'] = '16e0aed0-b265-48c9-9eae-0aad56147553';
|
|
||||||
SeedAndDewConfig['loadStartTime'] = performance.now();
|
|
||||||
SeedAndDewConfig['apiVersion'] = '2018-05-28'
|
|
||||||
SeedAndDewConfig['sessionId'] = Math.random().toString(36).substring(2, 15);
|
|
||||||
var snd = document.createElement('script');
|
|
||||||
snd.type = 'text/javascript';
|
|
||||||
snd.async = true;
|
|
||||||
snd.src = 'https://www.seedanddew.com/static/embed.min.js';
|
|
||||||
(document.getElementsByTagName('head')[0] ||
|
|
||||||
document.getElementsByTagName('body')[0]).appendChild(snd);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
@ -32,7 +15,6 @@
|
|||||||
window.$docsify = {
|
window.$docsify = {
|
||||||
name: 'Task',
|
name: 'Task',
|
||||||
repo: 'go-task/task',
|
repo: 'go-task/task',
|
||||||
ga: 'UA-126286662-1',
|
|
||||||
themeColor: '#00add8',
|
themeColor: '#00add8',
|
||||||
loadSidebar: true,
|
loadSidebar: true,
|
||||||
auto2top: true,
|
auto2top: true,
|
||||||
@ -40,10 +22,10 @@
|
|||||||
subMaxLevel: 3
|
subMaxLevel: 3
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
|
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
|
||||||
<script src="//unpkg.com/docsify/lib/plugins/ga.min.js"></script>
|
<script src="//cdn.jsdelivr.net/npm/docsify-themeable/dist/js/docsify-themeable.min.js"></script>
|
||||||
<script src="//unpkg.com/docsify-themeable"></script>
|
<script src="//cdn.jsdelivr.net/npm/docsify-tabs"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
|
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-yaml.min.js"></script>
|
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-yaml.min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
# Installation
|
# 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
|
## Package Managers
|
||||||
your $PATH. DEB and RPM packages are also available.
|
|
||||||
The `task_checksums.txt` file contains the sha256 checksum for each file.
|
|
||||||
|
|
||||||
## Homebrew
|
<!-- tabs:start -->
|
||||||
|
|
||||||
|
#### **Homebrew**
|
||||||
|
|
||||||
If you're on macOS or Linux and have [Homebrew][homebrew] installed, getting
|
If you're on macOS or Linux and have [Homebrew][homebrew] installed, getting
|
||||||
Task is as simple as running:
|
Task is as simple as running:
|
||||||
@ -15,19 +15,17 @@ Task is as simple as running:
|
|||||||
brew install go-task/tap/go-task
|
brew install go-task/tap/go-task
|
||||||
```
|
```
|
||||||
|
|
||||||
> This installation method is only currently supported on amd64 architectures.
|
#### **Snap**
|
||||||
|
|
||||||
## Snap
|
Task is available in [Snapcraft][snapcraft], but keep in mind that your
|
||||||
|
|
||||||
Task is available for [Snapcraft][snapcraft], but keep in mind that your
|
|
||||||
Linux distribution should allow classic confinement for Snaps to Task work
|
Linux distribution should allow classic confinement for Snaps to Task work
|
||||||
right:
|
right:
|
||||||
|
|
||||||
```bash
|
```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
|
If you're on Windows and have [Scoop][scoop] installed, use `extras` bucket
|
||||||
to install Task like:
|
to install Task like:
|
||||||
@ -40,7 +38,7 @@ scoop install task
|
|||||||
This installation method is community owned. After a new release of Task, it
|
This installation method is community owned. After a new release of Task, it
|
||||||
may take some time until it's available on Scoop.
|
may take some time until it's available on Scoop.
|
||||||
|
|
||||||
## Arch Linux
|
#### **AUR**
|
||||||
|
|
||||||
If you're on Arch Linux you can install Task from
|
If you're on Arch Linux you can install Task from
|
||||||
[AUR](https://aur.archlinux.org/packages/taskfile-git) using your favorite
|
[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
|
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.
|
the package, it's always latest available version based on the Git repository.
|
||||||
|
|
||||||
## Go
|
<!-- tabs:end -->
|
||||||
|
|
||||||
Task now uses [Go Modules](https://github.com/golang/go/wiki/Modules), which
|
## Get The Binary
|
||||||
means you may have trouble compiling it on older Go versions or using
|
|
||||||
`$GOPATH`.
|
|
||||||
|
|
||||||
For CI environments we recommend using the [Install Script](#install-script)
|
<!-- tabs:start -->
|
||||||
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
|
You can download the binary from the [releases page on GitHub][releases] and
|
||||||
git clone https://github.com/go-task/task
|
add to your `$PATH`.
|
||||||
cd task
|
|
||||||
|
|
||||||
# compiling binary to $GOPATH/bin
|
DEB and RPM packages are also available.
|
||||||
go install -v ./cmd/task
|
|
||||||
|
|
||||||
# compiling it to another location
|
The `task_checksums.txt` file contains the SHA-256 checksum for each file.
|
||||||
# use -o ./task.exe on Windows
|
|
||||||
go build -v -o ./task ./cmd/task
|
|
||||||
```
|
|
||||||
|
|
||||||
Both methods requires having the [Go][go] environment properly setup locally.
|
#### **Install Script**
|
||||||
|
|
||||||
## Install script
|
|
||||||
|
|
||||||
We also have a [install script][installscript], which is very useful on
|
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.
|
easily generating this script.
|
||||||
|
|
||||||
```bash
|
```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.
|
> 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
|
If you want to install Task in GitHub Actions you can try using
|
||||||
[this action](https://github.com/arduino/actions/tree/master/setup-taskfile)
|
[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.
|
This installation method is community owned.
|
||||||
|
|
||||||
|
<!-- tabs:end -->
|
||||||
|
|
||||||
|
## Build From Source
|
||||||
|
|
||||||
|
<!-- tabs:start -->
|
||||||
|
|
||||||
|
#### **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.
|
||||||
|
|
||||||
|
<!-- tabs:end -->
|
||||||
|
|
||||||
[go]: https://golang.org/
|
[go]: https://golang.org/
|
||||||
[snapcraft]: https://snapcraft.io/
|
[snapcraft]: https://snapcraft.io/task
|
||||||
[homebrew]: https://brew.sh/
|
[homebrew]: https://brew.sh/
|
||||||
[installscript]: https://github.com/go-task/task/blob/master/install-task.sh
|
[installscript]: https://github.com/go-task/task/blob/master/install-task.sh
|
||||||
[releases]: https://github.com/go-task/task/releases
|
[releases]: https://github.com/go-task/task/releases
|
||||||
|
@ -167,6 +167,10 @@ If the directory doesn't exist, `task` creates it.
|
|||||||
|
|
||||||
## Task dependencies
|
## 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
|
You may have tasks that depend on others. Just pointing them on `deps` will
|
||||||
make them run automatically before running the parent task:
|
make them run automatically before running the parent task:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user