func()

in cmd/stet/main.go [277:318]


func (*decryptCmd) Usage() string {
	cfgDir, err := os.UserConfigDir()
	if err != nil {
		glog.Errorf("Failed to get config directory location: %v", err.Error())
	}

	return fmt.Sprintf(`Usage: stet decrypt [--config-file=<config_file>] [--blob-id=<blob_id>] <ciphertext_file> <plaintext_file>

Example:
  Decrypt a file using STET, using %s for configuration:
    $ stet decrypt ciphertext.txt plaintext.txt
    Wrote plaintext to plaintext.txt
    Blob ID of decrypted data: ...
    Used these key URIs: [...]

  Decrypt with the given blob ID and a specific configuration file:
    $ stet decrypt --config-file="my_config.yaml" --blob-id="foobar" ciphertext.txt plaintext.txt
    Wrote plaintext to plaintext.txt
    Blob ID of decrypted data: foobar
    Used these key URIs: [...]

  Decrypt with ciphertext input from stdin:
    $ stet decrypt - plaintext.txt < ciphertext.txt
    Wrote plaintext to plaintext.txt
    Blob ID of decrypted data: ...
    Used these key URIs: [...]

	Decrypt with plaintext outputted to stdout:
    $ stet decrypt ciphertext.txt - > plaintext.txt
		Wrote plaintext to stdout.
    Blob ID of decrypted data: ...
    Used these key URIs: [...]

  Decrypt with input from stdin and output to stdout:
	  $ my-application | stet decrypt - - | my-other-application
    Wrote plaintext to stdout.
    Blob ID of decrypted data: ...
    Used these key URIs: [...]

Flags:
`, fmt.Sprintf("%s/%s", cfgDir, defaultConfigName))
}