enable gitea actions

This commit is contained in:
Aleksandr Trushkin
2024-02-02 18:24:00 +03:00
parent 4ceeba1608
commit d18d1d44dd
9 changed files with 124 additions and 44 deletions

27
cmd/cli/main_encoff.go Normal file
View File

@ -0,0 +1,27 @@
//go:build !encon
// +build !encon
package main
import (
"context"
"github.com/urfave/cli/v3"
)
func newCryptoDecryptCmd() *cli.Command {
return &cli.Command{
Name: "decrypt",
Usage: "decrypt incoming text",
Flags: []cli.Flag{
&cli.StringFlag{
Name: "text",
Aliases: []string{"t"},
Required: true,
},
},
Action: func(context.Context, *cli.Command) error {
return cli.Exit("decryption is turned off", -1)
},
}
}