command

package
v14.40.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package command provides functionality for handling GitLab Shell commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(args *commandargs.Shell, config *config.Config, readWriter *readwriter.ReadWriter) command.Command

Build constructs a command based on the provided arguments, config, and readWriter

func New

func New(arguments []string, env sshenv.Env, config *config.Config, readWriter *readwriter.ReadWriter) (command.Command, error)

New creates a new command based on the provided arguments, environment, config, and readWriter

func NewWithKey

func NewWithKey(gitlabKeyID string, env sshenv.Env, config *config.Config, readWriter *readwriter.ReadWriter) (command.Command, error)

NewWithKey creates a new command with the provided key ID

func NewWithKrb5Principal added in v14.16.0

func NewWithKrb5Principal(gitlabKrb5Principal string, env sshenv.Env, config *config.Config, readWriter *readwriter.ReadWriter) (command.Command, error)

NewWithKrb5Principal creates a new command with the provided Kerberos 5 principal

func NewWithUsername added in v14.27.0

func NewWithUsername(gitlabUsername string, env sshenv.Env, config *config.Config, readWriter *readwriter.ReadWriter) (command.Command, error)

NewWithUsername creates a new command with the provided username

func Parse

func Parse(arguments []string, env sshenv.Env) (*commandargs.Shell, error)

Parse parses the provided arguments and environment to create a commandargs.Shell object

Types

This section is empty.

Jump to

Keyboard shortcuts

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