exec

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MPL-2.0 Imports: 9 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 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