cli

module
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2024 License: Apache-2.0

README

Signadot CLI

This is the source repository for the Signadot command-line interface.

Please see the usage guide if all you want is to install and run the CLI.

To file an issue, please use our community issue tracker.

NOTE: Starting next release, and hence in the main branch, this repository has a dependency on a private repository, and hence building or running from source will not work. Previous releases should continue to work.

Install

To install the CLI, run:

curl -sSLf https://raw.githubusercontent.com/signadot/cli/main/scripts/install.sh | sh

By default, the script will install the latest version at /usr/local/bin/signadot. The target version can be selected by setting the SIGNADOT_CLI_VERSION variable, while you can specify the install directory with SIGNADOT_CLI_PATH.

Build

To build the CLI from source, such as to test changes, you'll need Go 1.18+.

The main package is in cmd/signadot:

go build ./cmd/signadot

Release

To release the CLI, you can use the release Github action. Push a new tag that matches the format v[0-9]+.[0-9]+.[0-9] and it will push new release artifacts and update brew.

See Also

The CLI is built on top of the Go SDK.

The CLI is built using libconnect.

Directories

Path Synopsis
cmd
internal
clio
Package clio abstracts common command-line I/O patterns.
Package clio abstracts common command-line I/O patterns.
config
Package config defines all the variables that users can set (through flags, environment vars, or the config file) to affect command behavior.
Package config defines all the variables that users can set (through flags, environment vars, or the config file) to affect command behavior.
poll
Package poll is an opinionated library for polling in the Signadot CLI.
Package poll is an opinionated library for polling in the Signadot CLI.
spinner
Package spinner displays a progress indicator with a live-updating status message.
Package spinner displays a progress indicator with a live-updating status message.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL