Documentation ¶
Index ¶
- Constants
- func AskForConfirmation(cmd *cobra.Command, s string, args ...interface{}) bool
- func AskForInput(cmd *cobra.Command, s string) string
- func AskForPassword(cmd *cobra.Command, s string) (string, error)
- func CollectFiles(a FileCollectibleArchive) ([]*archive.FileInfo, error)
- func ComputeChecksum(fs afero.Fs, path string) (string, error)
- func ComputeChecksumFromBytes(content []byte) string
- func FileExists(path string) bool
- func FindFilesByGlobs(fs fs.FS, globs ...string) []string
- func FindFilesByGlobsIgnore(baseFS fs.FS, ignoreFunc func(path string) bool, globs ...string) []string
- func IsPathIgnored(path string) bool
- func PasswordDoublePrompt(cmd *cobra.Command, s string) func() (string, error)
- func PasswordPrompt(cmd *cobra.Command, s string) func() (string, error)
- func RunPeriodicallyAndOnceAfterDone(ctx context.Context, period time.Duration, f func() error) error
- type FileCollectibleArchive
Constants ¶
View Source
const WorkerCount = 128
Variables ¶
This section is empty.
Functions ¶
func AskForConfirmation ¶
func CollectFiles ¶
func CollectFiles(a FileCollectibleArchive) ([]*archive.FileInfo, error)
func FileExists ¶
func FindFilesByGlobsIgnore ¶
func IsPathIgnored ¶
func PasswordDoublePrompt ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.