diff --git a/cmd/pm/main.go b/cmd/pm/main.go index 2160f15..17b5036 100644 --- a/cmd/pm/main.go +++ b/cmd/pm/main.go @@ -4,6 +4,8 @@ import ( "bufio" "fmt" "os" + + "mcquay.me/pm/keyring" ) const usage = `pm: simple, cross-platform system package manager @@ -61,8 +63,9 @@ func main() { fatalf("%v\n", err) } - fmt.Printf("name: %q, email: %q\n", name, email) - fatalf("NYI\n") + if err := keyring.NewKeyPair(root, name, email); err != nil { + fatalf("creating keypair: %v\n", err) + } default: fatalf("unknown keyring subcommand: %q\n\nusage: %v", sub, keyUsage) } diff --git a/keyring/keyring.go b/keyring/keyring.go new file mode 100644 index 0000000..458ac9d --- /dev/null +++ b/keyring/keyring.go @@ -0,0 +1,7 @@ +package keyring + +import "fmt" + +func NewKeyPair(root, name, email string) error { + return fmt.Errorf("NYI: %v, %v, %v", root, name, email) +}