exec

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package exec implements `zeabur server exec`: run a command on a dedicated server over SSH and stream its output.

Unlike the two-step `server ssh-info` + hand-rolled ssh2/sshpass flow (which embeds the password into a multi-layer-escaped shell script and corrupts passwords containing special characters), this fetches the credentials and opens the connection entirely in-process via golang.org/x/crypto/ssh. The password is never printed nor passed through a shell, so special characters are safe and no external ssh/sshpass client is required (DES-802).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdExec

func NewCmdExec(f *cmdutil.Factory) *cobra.Command

Types

type Options

type Options struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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