refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec handling core logic so people won't be confused by the core logic inside the commands folder (cleaner I guess) - Regen docs
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
package ops
|
||||
|
||||
import (
|
||||
"github.com/versenilvis/iris/commands/core"
|
||||
"github.com/versenilvis/iris/spec"
|
||||
)
|
||||
|
||||
func init() {
|
||||
core.Register(&core.Spec{
|
||||
spec.Register(&spec.Spec{
|
||||
Name: "pass",
|
||||
Description: "Pass - stores, retrieves, generates, and synchronizes passwords securely",
|
||||
Subcommands: []core.Subcommand{
|
||||
Subcommands: []spec.Subcommand{
|
||||
{Name: "init", Description: "Initialize new password storage and use gpg-id for encryption"},
|
||||
{Name: "gpg-id", Description: "The gpg-id you want to use to encrypt your password store"},
|
||||
{Name: "insert", Description: "Insert a new password into the password store called pass-name"},
|
||||
@@ -28,7 +28,7 @@ func init() {
|
||||
{Name: "find", Description: "List names of passwords inside the tree that match pass-names"},
|
||||
{Name: "show", Description: "Decrypt and print a password"},
|
||||
},
|
||||
Options: []core.Option{
|
||||
Options: []spec.Option{
|
||||
{Name: "--clip", Description: "Copy the password to the clipboard"},
|
||||
{Name: "--qrcode", Description: "Display a QRcode of the password"},
|
||||
{Name: "--help", Description: "Show help for pass"},
|
||||
|
||||
Reference in New Issue
Block a user