You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/03/09 19:08:50 UTC

incubator-mynewt-newt git commit: Add verbose status message for "clean all"

Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/rename_project_app bdf361df5 -> 2b15801ba


Add verbose status message for "clean all"


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/2b15801b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/2b15801b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/2b15801b

Branch: refs/heads/rename_project_app
Commit: 2b15801bab1ebd81b5b53606df0351ab9474b841
Parents: bdf361d
Author: ccollins at iori.nightmare.heaven <cc...@iori.nightmare-heaven.no-ip.biz>
Authored: Wed Mar 9 10:04:47 2016 -0800
Committer: ccollins at iori.nightmare.heaven <cc...@iori.nightmare-heaven.no-ip.biz>
Committed: Wed Mar 9 10:05:30 2016 -0800

----------------------------------------------------------------------
 newt/builder/cmds.go | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/2b15801b/newt/builder/cmds.go
----------------------------------------------------------------------
diff --git a/newt/builder/cmds.go b/newt/builder/cmds.go
index dcdb37c..dc8af98 100644
--- a/newt/builder/cmds.go
+++ b/newt/builder/cmds.go
@@ -76,7 +76,11 @@ func cleanRunCmd(cmd *cobra.Command, args []string) {
     }
 
     if cleanAll {
-        err := os.RemoveAll(BinRoot())
+        path := BinRoot()
+        util.StatusMessage(util.VERBOSITY_VERBOSE,
+            "Cleaning directory %s\n", path)
+
+        err := os.RemoveAll(path)
         if err != nil {
             cli.NewtUsage(cmd, err)
         }