cmd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package cmd provides the command-line interface for the get CLI.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is the version of the get CLI. It can be overridden at build time using -ldflags:

go build -ldflags "-X github.com/jclem/get/internal/cmd.Version=1.0.0"

Functions

func ExecuteContext

func ExecuteContext(ctx context.Context)

ExecuteContext creates a new root command and executes it with the given context.

This will run the CLI with any flags and arguments given to the current process.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates the root Cobra command for the get CLI.

func NewSessionsCmd

func NewSessionsCmd() *cobra.Command

NewSessionsCmd creates the `get sessions` command tree.

func NewVersionCmd added in v0.0.3

func NewVersionCmd() *cobra.Command

NewVersionCmd creates the `get version` command.

Types

This section is empty.

Directories

Path Synopsis
Package main is the executable for the get CLI.
Package main is the executable for the get CLI.

Jump to

Keyboard shortcuts

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