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 (*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)
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
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
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
func (ListFilesCliHandler) Run(repo ports.GitRepository, stdout ports.STDOUT) error
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
func (h ReEncryptFilesCliHandler) Run( repo ports.GitRepository, repoFS ports.ReadWriteFS, sealer ports.FileOpenSealer, ) error
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)
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
func (h *TrackFilesCliHandler) Run(repoFS ports.ReadWriteFS) error
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
Click to show internal directories.
Click to hide internal directories.