package
1.17.1
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/cmd"
)

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

# Packages

No description provided by the author

# 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, }.

# Variables

EncryptAESCMD encrypt files by aes `go run cmd/main/main.go encrypt aes -i cmd/root.go -s 123`.
EncryptCMD encrypt files.
GenTLS 生成 tls 证书 `go run -race cmd/main/main.go gentls --host 1.2.3.4` 注,RSA 证书没毛病,P256 的 ES 证书 Chrome 尚不支持 inspired by https://golang.org/src/crypto/tls/generate_cert.go.