cli

package
v0.0.0-...-e73c711 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package cli implements the commandline interface using https://github.com/spf13/cobra.

Index

Constants

This section is empty.

Variables

View Source
var AddPbkdfCommand = func(c *cobra.Command) *cobra.Command {
	return c
}

Placeholder that is maybe overwritten in pbkdf.go init() if pbkdf build tag given

View Source
var RootCommand = &cobra.Command{
	Use: "aenker",
	Long: `Aenker is a tool to encrypt files with an authenticated integrated encryption
scheme by chunking the input into equal parts and sealing them with a key
derived from an anonymous Diffie-Hellman key exchange on an elliptic curve.

Many parties can encrypt files for a single recipient by distributing that
recipient's public key, while only the recipient can decrypt any of those files
afterwards.`,
}

RootCommand is the root cobra command to be executed with Execute().

Functions

func AddDecryptCommand

func AddDecryptCommand(parent *cobra.Command) *cobra.Command

AddDecryptCommand adds the decryption subcommand to a cobra command.

func AddDocsGenCommand

func AddDocsGenCommand(root *cobra.Command) *cobra.Command

AddDocsGenCommand adds the manuals and autocompletion generator subcommands to a cobra command.

It can be disabled by building with the tag 'nodocs' to save some space.

func AddEncryptCommand

func AddEncryptCommand(parent *cobra.Command) *cobra.Command

AddEncryptCommand adds the encryption subcommand to a cobra command.

func AddKeygenCommand

func AddKeygenCommand(parent *cobra.Command) *cobra.Command

AddKeygenCommand add the key generator and pubkey converter subcommands to a cobra command.

func AddPubkeyCommand

func AddPubkeyCommand(parent *cobra.Command) *cobra.Command

AddPubkeyCommand adds the pubkey converter subcommand to a cobra command.

func Execute

func Execute()

Execute is the main function. It starts the cobra commander for the RootCommand 'aenker', parses arguments and flags, and finally executes the desired command.

Types

This section is empty.

Directories

Path Synopsis
Package cobraflags implements some Flag and Command addons.
Package cobraflags implements some Flag and Command addons.

Jump to

Keyboard shortcuts

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