cli

command module
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 4 Imported by: 0

README

Nais Command Line Interface

This repository contains the source code for the Nais command line interface (CLI), as well as the somewhat opinionated Cobra wrapper, which is split into a separate module.

See Nais doc for usage instructions: nais-cli

Local Development

Install the required go version:
mise install
Build nais cli
mise run build
Run tests
mise run test
Verify nais cli
./bin/nais --version
Setup shell completion for local builds
source <(./bin/nais completion zsh|bash|fish|powershell)

Instrumentation

We use otel for instrumentation and record the user interaction with the CLI to see if we can optimize the user experience.

We respect your privacy and do not collect any data if you set the environment variable DO_NOT_TRACK according to the Do Not Track.

There's a grafana dashboard.

Contributing

This repo uses Conventional Commits. Please read up on how to format your commit messages. Please see the pre-commit hook to see which types we allow.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
gcloud
Package gcloud is a wrapper for gcloud commands
Package gcloud is a wrapper for gcloud commands
k8s
naisapi
Package keyring is a simple wrapper that adds timeouts to the zalando/go-keyring package "Borrowed" with ❤️ from https://github.com/cli/cli/blob/17af24e147629aa1aed2546e87e9323aeabf4c8c/internal/keyring/keyring.go
Package keyring is a simple wrapper that adds timeouts to the zalando/go-keyring package "Borrowed" with ❤️ from https://github.com/cli/cli/blob/17af24e147629aa1aed2546e87e9323aeabf4c8c/internal/keyring/keyring.go

Jump to

Keyboard shortcuts

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