31 lines
727 B
Swift
31 lines
727 B
Swift
import ArgumentParser
|
|
import CliDoc
|
|
|
|
struct VaultCommand: AsyncParsableCommand {
|
|
|
|
static let commandName = "vault"
|
|
|
|
static let configuration = CommandConfiguration(
|
|
commandName: commandName,
|
|
abstract: createAbstract("Vault commands."),
|
|
discussion: Discussion {
|
|
VStack {
|
|
"""
|
|
Allows you to run `ansible-vault` commands on your project or project-template.
|
|
|
|
Ansible-vault allows you to store sensitive variables in an encrypted format.
|
|
"""
|
|
SeeAlso {
|
|
"ansible-vault --help"
|
|
} label: {
|
|
"Ansible Vault"
|
|
}
|
|
}
|
|
.separator(.newLine(count: 2))
|
|
},
|
|
subcommands: [
|
|
DecryptCommand.self, EncryptCommand.self
|
|
]
|
|
)
|
|
}
|