command

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ExitCodeOK means that this app successfully finished to run.
	ExitCodeOK int = iota
	// ExitCodeVerificationFailed means that the Verification has ended with errors.
	ExitCodeVerificationFailed
	// ExitCodeFailed means that this app failed to run. Please check the error message.
	ExitCodeFailed
	// ExitCodeCommandNotFound means that your inputed sub-command is invalid.
	ExitCodeCommandNotFound
	// ExitCodeFunctionError means that this app's any function cannot work fine.
	ExitCodeFunctionError
	// ExitCodeInvalidArguments means that the arguments are invalid.
	ExitCodeInvalidArguments
	// ExitCodeIOError means that this app cannot conplete any IO function.
	ExitCodeIOError
)

Variables

View Source
var (
	// UsageGenerate is Usage of generate subcommand for cli
	UsageGenerate = "Generates a json file of the hash list"
)
View Source
var (
	// UsageVerify is Usage of verify subcommand for cli
	UsageVerify = "Verifies the structure and each hash value of files."
)

Functions

func CmdGenerate

func CmdGenerate(c *cli.Context) error

CmdGenerate generates a json file of the hash list. This hash list includes hash values and recursive directory structure information.

func CmdVerify added in v0.2.0

func CmdVerify(c *cli.Context) error

CmdVerify verifies directory information below cases.

Case 1. a json file of hash list with target directory
Case 2. source directory with target directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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