cli

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddRecipientCliHandler

type AddRecipientCliHandler struct {
	KeysFlag    `embed:""`
	CommentFlag `embed:""`
	Recipient   string `arg:"" help:"Recipient to add"`
	Message     string `help:"Message to be used for the commit" default:"chore: add recipient" short:"m"`
}

func (*AddRecipientCliHandler) AfterApply added in v0.1.6

func (h *AddRecipientCliHandler) AfterApply(kctx *kong.Context, cwd ports.CWD) error

func (*AddRecipientCliHandler) Run added in v0.1.6

func (h *AddRecipientCliHandler) Run(
	repoFS ports.ReadWriteFS,
	recipients ports.Recipients,
	openSealer ports.FileOpenSealer,
	repo ports.GitRepository,
) (err error)

type CleanCliHandler

type CleanCliHandler struct {
	KeysFlag        `embed:""`
	Repository      ports.GitRepository  `kong:"-"`
	OpenSealer      ports.FileOpenSealer `kong:"-"`
	FileToCleanPath string               `arg:"" name:"file" help:"Path to the file to clean"`
}

func (*CleanCliHandler) AfterApply added in v0.1.6

func (h *CleanCliHandler) AfterApply(cwd ports.CWD) (err error)

func (*CleanCliHandler) Run added in v0.1.6

func (h *CleanCliHandler) Run(stdin ports.STDIN, stdout ports.STDOUT) error

type CommentFlag added in v0.1.6

type CommentFlag struct {
	Comment string `short:"c" name:"comment" help:"Comment to add in file"`
}

type FilesCliHandler

type FilesCliHandler struct {
	KeysFlag  `embed:""`
	List      ListFilesCliHandler      `cmd:"" name:"list" help:"List files" aliases:"ls"`
	Track     TrackFilesCliHandler     `cmd:"" name:"track" help:"Track files"`
	ReEncrypt ReEncryptFilesCliHandler `cmd:"" name:"re-encrypt" help:"Re-encrypt files tracked by git-age"`
}

func (*FilesCliHandler) AfterApply added in v0.1.6

func (h *FilesCliHandler) AfterApply(kctx *kong.Context, cwd ports.CWD) error

type GenKeyCliHandler

type GenKeyCliHandler struct {
	KeysFlag    `embed:""`
	CommentFlag `embed:""`

	Identities ports.Identities `kong:"-"`
}

func (*GenKeyCliHandler) AfterApply added in v0.1.6

func (h *GenKeyCliHandler) AfterApply() error

func (*GenKeyCliHandler) Run added in v0.1.6

func (h *GenKeyCliHandler) Run(stdout ports.STDOUT) (err error)

type InitCliHandler

type InitCliHandler struct {
	CommentFlag `embed:""`
	KeysFlag    `embed:""`

	Identities ports.Identities  `kong:"-"`
	Recipients ports.Recipients  `kong:"-"`
	RepoFS     ports.ReadWriteFS `kong:"-"`
}

func (*InitCliHandler) AfterApply added in v0.1.6

func (h *InitCliHandler) AfterApply(cwd ports.CWD) error

func (*InitCliHandler) Run added in v0.1.6

func (h *InitCliHandler) Run() (err error)

type InstallCliHandler

type InstallCliHandler struct{}

func (*InstallCliHandler) Run added in v0.1.6

func (h *InstallCliHandler) Run() (err error)

type KeysFlag added in v0.1.6

type KeysFlag struct {
	Keys string `` /* 140-byte string literal not displayed */
}

type ListFilesCliHandler added in v0.1.6

type ListFilesCliHandler struct{}

func (ListFilesCliHandler) Run added in v0.1.6

type ReEncryptFilesCliHandler added in v0.1.6

type ReEncryptFilesCliHandler struct {
	Message string `help:"Message to be used for the commit" default:"chore: re-encrypt secret files" short:"m"`
}

func (ReEncryptFilesCliHandler) Run added in v0.1.6

type SmudgeCliHandler

type SmudgeCliHandler struct {
	KeysFlag        `embed:""`
	Opener          ports.FileOpener `kong:"-"`
	FileToCleanPath string           `arg:"" name:"file" help:"Path to the file to clean"`
}

func (*SmudgeCliHandler) AfterApply added in v0.1.6

func (h *SmudgeCliHandler) AfterApply() (err error)

func (*SmudgeCliHandler) Run added in v0.1.6

func (h *SmudgeCliHandler) Run(stdin ports.STDIN, stdout ports.STDOUT) error

type TrackFilesCliHandler added in v0.1.6

type TrackFilesCliHandler struct {
	Pattern string `arg:"" help:"Pattern to track"`

	// relative working directory within the repository
	WorkingDir string `kong:"-"`
}

func (*TrackFilesCliHandler) AfterApply added in v0.1.6

func (h *TrackFilesCliHandler) AfterApply(cwd ports.CWD) (err error)

func (*TrackFilesCliHandler) Run added in v0.1.6

type VersionCliHandler added in v0.1.1

type VersionCliHandler struct {
	Short            bool         `help:"Print only the version"`
	SkipVersionCheck bool         `help:"Skip version check"`
	Client           *http.Client `kong:"-"`
}

func (VersionCliHandler) Run added in v0.1.6

func (h VersionCliHandler) Run() error

Jump to

Keyboard shortcuts

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