cli

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 52 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cli is the mcloud command line.

Index

Constants

View Source
const PreviewLabel = "preview"

PreviewLabel is the pull request label that asks for a preview.

View Source
const ProjectFile = "maxcloud.yaml"

ProjectFile, in an app's repo, names the app so commands run there don't need it spelled out.

Variables

View Source
var Version = ""

Version is set at build time (-ldflags "-X ...cli.Version=v0.1.0").

Functions

func CredentialHelper added in v0.10.0

func CredentialHelper(args []string, in io.Reader, out io.Writer) int

CredentialHelper is the docker credential helper protocol (https://github.com/docker/docker-credential-helpers): get prints a login for the server on stdin. The password is $MCLOUD_REGISTRY_TOKEN (a push token mcloud got for this build), or in GitHub Actions a fresh OIDC token of the workflow, whose audience is the registry's host (those last about 5 minutes, less than a build, hence asking on every get).

func New

func New() *cobra.Command

New builds the root command.

func Run added in v0.11.0

func Run(ctx context.Context) int

Run runs mcloud with these arguments and returns its exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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