mirror of
https://github.com/go-task/task.git
synced 2026-06-25 05:35:56 +00:00
2.2 KiB
2.2 KiB
slug, sidebar_position, title
| slug | sidebar_position | title |
|---|---|---|
| / | 1 | ホーム |
Task
TaskはGNU Makeのようにシンプルで簡単に使えるタスクランナー・ビルドツールです。
Goで書かれているため、Taskはシングルバイナリで他の依存関係がありません。つまり、複雑なインストールセットアップがありません。
Once installed, you just need to describe your build tasks using a simple YAML schema in a file called Taskfile.yml:
version: '3'
tasks:
hello:
cmds:
- echo 'Hello World from Task!'
silent: true
記述後はターミナル上でtask helloと実行することでそのタスクが実行されます。
上記の例は始まりに過ぎません。 全てのスキーマやTaskの機能については、usageガイドを確認するといいでしょう。
特徴
- Easy installation: just download a single binary, add to
$PATHand you're done! またはHomebrew、Snapcraft、Scoopを使ってインストールすることができます。 - Available on CIs: by adding this simple command to install on your CI script and you're ready to use Task as part of your CI pipeline;
- 真のクロスプラットフォーム: ほとんどのビルドツールはLinuxまたはmacOSだけで使用可能ですが、TaskはGoのシェルインタープリタを使うことでWindowsもサポートしています。
- コード生成に適している: 特定のファイル群が最後に実行されてから変更されていない場合(タイムスタンプや内容に基づき)、簡単にタスクの実行を防ぐことができます。