shell

package
v0.0.0-...-ff37129 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizedKeysCommand

func AuthorizedKeysCommand(shell string, user *ssh.User, key *ssh.Key) string

AuthorizedKeysCommand formats a shell command invocation with arguments as `command=` option suitable for use in the authorized keys file

Types

type ShellArgs

type ShellArgs struct {
	User ssh.User
	Key  ssh.Key
}

func ParseShellArgs

func ParseShellArgs() (*ShellArgs, error)

ParseShellArgs should be used by all shell implementations to parse their command line arguments.

Jump to

Keyboard shortcuts

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