commands

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TSCCommand = cli.Command{
	Name:  "tsc",
	Usage: "Convert to/from TSC",
	Subcommands: []cli.Command{
		{
			Name:  "decrypt",
			Usage: "decrypt a TSC file into human-readable text",
			Flags: []cli.Flag{
				cli.StringFlag{
					Name:  "output, o",
					Value: "output.txt",
					Usage: "`PATH` to output file",
				},
			},
			Action: func(ctx *cli.Context) error {
				return handle("decrypt", ctx, false)
			},
		},
		{
			Name:  "encrypt",
			Usage: "encrypt a plaintext file into TSC",
			Flags: []cli.Flag{
				cli.StringFlag{
					Name:  "output, o",
					Value: "output.tsc",
					Usage: "`PATH` to output file",
				},
				cli.BoolFlag{
					Name:  "allow-comments, c",
					Usage: "if this flag is provided, the comments will not be stripped",
				},
			},
			Action: func(ctx *cli.Context) error {
				return handle("encrypt", ctx, ctx.Bool("allow-comments"))
			},
		},
	},
}

TSCCommand is the command that encrypts/decrypts TSC

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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