tk(Task Keeper) is a tool to manage tasks from different task files,
such as Makefile
,justfile
, package.json
, deno.jso
, .fleet/run.json
etc,
and call tasks from different project management tools,
such as Apache Maven
, Gradle
, Cargo
and npm
etc.
tk --list
tk task_name
tk --runner=npm start
tk --from=npm --to=fleet task1 task2
tk --no-dotenv
to disablecargo install task-keeper
After install, execute tk --help
for usage. Some commands as following:
tk --list
tk task_name
Sorry, I got lost in different task files and management tools, and sometimes I even can not remember how to run them.
Makefile
,justfile
, package.json
, deno.json
, Taskfile.yml
, tasks.py
, README.md
etc, and
too many task files to check tasks.just taskName
, npm run task_name
, deno task task_name
, composer run-script task_name
etcmvn versions:display-dependency-updates
, ./gradlew dependencyUpdates
, npm outdated
etcmvn -DskipTests package
, ./gradlew assemble
, cargo build
etcToo many differences, I want to save my brain and keyboard, and you know MacBook keyboard's price tag is $400+.
mvn archetype:generate
, npm init
, cargo new xxx
etcnpm istall
, dependency:resolve
tk build -- --release
, maven: mvn -DskipTests clean package
, npm: npm run build
go run main.go
npm test
, maven: mvn test
, cargo: cargo test
mvn javadoc:javadoc
mvn clean
, cargo: cargo clean
go list -u -m all
go get -u
tk add dependency
or tk -D add dependency
or tk --runner=npm add dependency
Attention: if package manager's task name is in a task runner, and task keeper will not execute package manager's command.
Available
Please set up gradle-versions-plugin for dependency version
management.
You can transparently add the plugin to every Gradle project that you run via a Gradle init script.
$HOME/.gradle/init.d/add-versions-plugin.gradle
with following code:
``` initscript { repositories { gradlePluginPortal() }
dependencies { classpath 'com.github.ben-manes:gradle-versions-plugin:+' } }
allprojects { apply plugin: com.github.benmanes.gradle.versions.VersionsPlugin
tasks.named("dependencyUpdates").configure { // configure the task, for example wrt. resolution strategies } } ```
Please add sbt-updates and DependencyTreePlugin as global plugins.
$HOME/.sbt/1.0/plugins/plugins.sbt
with following code:
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.3")
addDependencyTreePlugin
Available
npm-check
command available, npm-check -u
will be used as outdated
task.Available
Available
Available
Available
Only support cmake-conan, and conanfile.txt required.
Default build directory is cmake-build-debug
, and you override it by CMAKE_BINARY_DIR=_build tk build
.
Available. Please install swift-outdated for outdated
operation.
Available.
Available.
Task options are options for task, such as tk hello --name linux_china
.
Global options are options for task runner and seperated by double dash, such as tk hello --name Jack -- --verbose
shell
$ ## http-methods
$ curl https://httpbin.org/get
$ curl -X POST https://httpbin.org/post
```shell
curl --silent https://httpbin.org/ip | jq '.origin' ```
shell
curl https://httpbin.org/ip \
--user-agent "Task Keeper/0.1.0" \
--silent
curl https://httpbin.org/headers