cmd

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ConfigCtxKey is the key for the config in the context.
	ConfigCtxKey = ContextKey("config")
	// SessionCtxKey is the key for the session in the context.
	SessionCtxKey = ContextKey("session")
	// HooksCtxKey is the key for the git hooks in the context.
	HooksCtxKey = ContextKey("hooks")
)

Functions

func Middleware added in v0.5.0

func Middleware(cfg *config.Config) wish.Middleware

Middleware is the Soft Serve middleware that handles SSH commands.

Types

type ContextKey added in v0.4.0

type ContextKey string

ContextKey is a type that can be used as a key in a context.

func (ContextKey) String added in v0.4.0

func (c ContextKey) String() string

String returns the string representation of the ContextKey.

Jump to

Keyboard shortcuts

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