leeway

(★ 181)

Leeway is a heavily caching build system for Go, Typescript and Docker projects.

File Explorer

  • .gitignore
  • .goreleaser.yaml
  • BUILD.yaml
  • codecov.yml
  • go.mod
  • go.sum
  • LICENSE
  • logo.png
  • main.go
  • README.md
  • WORKSPACE.yaml

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

AWS

View Details ▼

The official CLI tool for Amazon Web Services.
Some subcommands such as `s3` have their own usage documentation.

aws configure wizard

Configure the AWS Command-line:

aws configure sso

Configure the AWS Command-line using SSO:

aws sts get-caller-identity

Get the caller identity (used to troubleshoot permissions):

🔍

brew install

View Details ▼

Install a Homebrew formula or cask.

brew install {{formula|cask}}

Install a formula/cask:

brew install {{[-s|--build-from-source]}} {{formula}}

Build and install a formula from source (dependencies will still be installed from bottles):

brew install {{[-n|--dry-run]}} {{formula|cask}}

Download the manifest, print what would be installed but don't actually install anything:

🔍

docker buildx create

View Details ▼

Create a new builder instance.

docker buildx create

Create a new builder instance using the default Docker context:

docker buildx create --name {{builder_name}}

Create a new builder instance with a specific name:

docker buildx create --name {{builder_name}} --use

Create a new builder instance and immediately set it as the current active builder:

🔍

docker load

View Details ▼

This command is an alias of `docker image load`.

tldr docker image load

View documentation for the original command:

🔍

docker save

View Details ▼

This command is an alias of `docker image save`.

tldr docker image save

View documentation for the original command:

🔍

docker

View Details ▼

Manage Docker containers and images.
Some subcommands such as `container` and `image` have their own usage documentation.

docker {{[ps|container ls]}} {{[-a|--all]}}

List all Docker containers (running and stopped):

docker {{[run|container run]}} --name {{container_name}} {{image}}

Start a container from an image, with a custom name:

docker container {{start|stop}} {{container_name}}

Start or stop an existing container:

🔍

git push

View Details ▼

Push commits to a remote repository.

git push

Send local changes in the current branch to its default remote counterpart:

git push {{remote_name}} {{local_branch}}

Send changes from a specific local branch to its remote counterpart:

git push {{[-u|--set-upstream]}} {{remote_name}} {{local_branch}}

Send changes from a specific local branch to its remote counterpart, and set the remote one as the default push/pull target of the local one:

🔍

git tag

View Details ▼

Create, list, delete, or verify tags.
A tag is a static reference to a commit.

git tag

List all tags:

git tag {{tag_name}}

Create a tag with the given name pointing to the current commit:

git tag {{tag_name}} {{commit}}

Create a tag with the given name pointing to a given commit:

🔍

go build

View Details ▼

Compile Go sources.

go build {{path/to/main.go}}

Compile a 'package main' file (output will be the filename without extension):

go build -o {{path/to/binary}} {{path/to/source.go}}

Compile, specifying the output filename:

go build -o {{path/to/binary}} {{path/to/package}}

Compile a package:

🔍

go fmt

View Details ▼

Format Go source files, printing the changed filenames.
Note: `./...` is a Go package pattern understood by Go tooling. It matches the current package and all packages recursively under the current directory.

go fmt

Format Go source files in the current directory:

go fmt {{path/to/package}}

Format a specific Go package in your import path (`$GOPATH/src`):

go fmt {{./...}}

Format the package in the current directory and all subdirectories (note the `...`):

🔍

go generate

View Details ▼

Generate Go files by running commands within source files.

go generate

Generate Go files by running commands within source files:

🔍

go test

View Details ▼

Test Go packages (files have to end with `_test.go`).
Note: `./...` is a Go package pattern understood by Go tooling. It matches the current package and all packages recursively under the current directory.

go test

Test the package found in the current directory:

go test -v

[v]erbosely test the package in the current directory:

go test -v ./...

Test the packages in the current directory and all subdirectories:

🔍

go version

View Details ▼

Display Go version.

go version

Display version:

go version {{path/to/executable}}

Display the Go version used to build a specific executable file:

🔍

yarn

View Details ▼

JavaScript and Node.js package manager alternative.

yarn global add {{module_name}}

Install a module globally:

yarn install

Install all dependencies referenced in the `package.json` file (the `install` is optional):

yarn add {{module_name}}@{{version}}

Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency):

🔍

GCP

View Details ▼

This command is an alias of GNU `cp`.

tldr cp

View documentation for the original command:

// repository documentation