From 5a57f5e970bf712c129aaf4f369e11e36709a3a8 Mon Sep 17 00:00:00 2001 From: Diogo Monica Date: Tue, 28 Jul 2015 11:55:53 -0700 Subject: [PATCH] Rebased off of master, working removes Signed-off-by: Diogo Monica --- cmd/notary/tuf.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/notary/tuf.go b/cmd/notary/tuf.go index c0ded74ed6..2b3f1734f9 100644 --- a/cmd/notary/tuf.go +++ b/cmd/notary/tuf.go @@ -90,7 +90,7 @@ func tufAdd(cmd *cobra.Command, args []string) { if err != nil { fatalf(err.Error()) } - fmt.Println("Successfully added targets") + fmt.Printf("Addition of %s to %s staged for next publish.\n", targetName, gun) } func tufInit(cmd *cobra.Command, args []string) { @@ -209,7 +209,7 @@ func tufRemove(cmd *cobra.Command, args []string) { targetName := args[1] parseConfig() - repo, err := notaryclient.NewNotaryRepository(viper.GetString("baseTrustDir"), gun, remoteTrustServer, + repo, err := notaryclient.NewNotaryRepository(trustDir, gun, remoteTrustServer, getTransport(), retriever) if err != nil { fatalf(err.Error()) @@ -218,6 +218,8 @@ func tufRemove(cmd *cobra.Command, args []string) { if err != nil { fatalf(err.Error()) } + + fmt.Printf("Removal of %s from %s staged for next publish.\n", targetName, gun) } func verify(cmd *cobra.Command, args []string) {