cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultShell = "/bin/sh"
)

Variables

This section is empty.

Functions

func NewCmdRsh

NewCmdRsh returns a command that attempts to open a shell session to the server.

Types

type RshOptions

type RshOptions struct {
	ForceTTY   bool
	DisableTTY bool
	Executable string
	*exec.ExecOptions
}

RshOptions declare the arguments accepted by the Rsh command

func NewRshOptions

func NewRshOptions(streams genericclioptions.IOStreams) *RshOptions

func (*RshOptions) Complete

func (o *RshOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error

Complete applies the command environment to RshOptions

func (*RshOptions) Run

func (o *RshOptions) Run() error

Run starts a remote shell session on the server

func (*RshOptions) Validate

func (o *RshOptions) Validate() error

Validate ensures that RshOptions are valid

Jump to

Keyboard shortcuts

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