package
5.0.0
Repository: https://github.com/laisky/go-utils.git
Documentation: pkg.go.dev

# README

some useful cmds.

Example:

append to your root cmd.

import (
	gcmd "github.com/Laisky/go-utils/v5/cmd"
)

func init() {
	rootCmd.AddCommand(gcmd.EncryptCMD)
}

# Packages

Package main gutils' command line tool.

# Functions

Execute adds all child commands to the root command and sets flags appropriately.
NoExtraArgs make sure every args has been processed do not allow any unprocessed args # Example use with cobra.Command: cmd = &cobra.Command{ Args: NoExtraArgs, }.
SignFileByRSA sign file by rsa.
VerifyFileByRSA verify file by rsa.

# Variables

EncryptAESCMD encrypt files by aes `go run cmd/main/main.go encrypt aes -i cmd/root.go -s 123`.
EncryptCMD encrypt files.
RSA some rsa command tools.
RSASign sign file by rsa.
RSAVerify verify file by rsa.