Help us shape the future of Go! Take the 2026 Go Developer Survey

command

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package command wires the ohmyssh commands onto an urfave/cli v3 command tree.

Nothing here decides anything: a command turns its flags into arguments for the service layer and turns what comes back into an exit status. The behaviour it drives lives in internal/service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cli.Command

New builds the command tree with the service layer wired to its dependencies. It is exported so tests can exercise the CLI without spawning a process.

func Run

func Run(args []string) int

Run executes the CLI and returns the status the process should exit with.

The error is turned into a status here rather than through log.Fatal so that a remote command's own exit status survives: the whole point of `ohmyssh exec host -- cmd` is that its callers can test $?.

Types

This section is empty.

Jump to

Keyboard shortcuts

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