change workstation

This commit is contained in:
2023-07-11 10:57:17 +10:00
parent 9182bca042
commit 91f7cbbd06
6 changed files with 64 additions and 0 deletions

38
cmd/spt/spt.go Normal file
View File

@@ -0,0 +1,38 @@
package spt
import "github.com/spf13/cobra"
var (
rootCmd = &cobra.Command{
Use: "spt",
Short: "a simple tool to encrypt and decrypt file",
}
encryptCmd = &cobra.Command{
Use: "encrypt",
RunE: encrypt,
}
decryptCmd = &cobra.Command{
Use: "decrypt",
RunE: decrypt,
}
)
func Execute() error {
return rootCmd.Execute()
}
func init() {
rootCmd.AddCommand(encryptCmd, decryptCmd)
}
func encrypt(cmd *cobra.Command, args []string) error {
//TODO: implementation
return nil
}
func decrypt(cmd *cobra.Command, args []string) error {
//TODO: implementation
return nil
}