github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/command/v6/ssh_command.go (about)

     1  package v6
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/command"
     5  	"code.cloudfoundry.org/cli/command/flag"
     6  	"code.cloudfoundry.org/cli/command/translatableerror"
     7  )
     8  
     9  type SSHCommand struct {
    10  	RequiredArgs        flag.AppName `positional-args:"yes"`
    11  	AppInstanceIndex    int          `long:"app-instance-index" short:"i" description:"Application instance index (Default: 0)"`
    12  	Command             string       `long:"command" short:"c" description:"Command to run. This flag can be defined more than once."`
    13  	DisablePseudoTTY    bool         `long:"disable-pseudo-tty" short:"T" description:"Disable pseudo-tty allocation"`
    14  	ForcePseudoTTY      bool         `long:"force-pseudo-tty" description:"Force pseudo-tty allocation"`
    15  	LocalPort           string       `short:"L" description:"Local port forward specification. This flag can be defined more than once."`
    16  	RemotePseudoTTY     bool         `long:"request-pseudo-tty" short:"t" description:"Request pseudo-tty allocation"`
    17  	SkipHostValidation  bool         `long:"skip-host-validation" short:"k" description:"Skip host key validation"`
    18  	SkipRemoteExecution bool         `long:"skip-remote-execution" short:"N" description:"Do not execute a remote command"`
    19  	usage               interface{}  `usage:"CF_NAME ssh APP_NAME [-i INDEX] [-c COMMAND]... [-L [BIND_ADDRESS:]PORT:HOST:HOST_PORT] [--skip-host-validation] [--skip-remote-execution] [--disable-pseudo-tty | --force-pseudo-tty | --request-pseudo-tty]"`
    20  	relatedCommands     interface{}  `related_commands:"allow-space-ssh, enable-ssh, space-ssh-allowed, ssh-code, ssh-enabled"`
    21  }
    22  
    23  func (SSHCommand) Setup(config command.Config, ui command.UI) error {
    24  	return nil
    25  }
    26  
    27  func (SSHCommand) Execute(args []string) error {
    28  	return translatableerror.UnrefactoredCommandError{}
    29  }