summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2016-12-03 11:54:00 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2016-12-03 11:54:00 +0000
commit98b46e77a32939a7a623f65135f9db4ea3485148 (patch)
tree450a380e3f2a40ffa7cda29034138be26b1029d9 /lib
parentb081d2f673baca8d2a53932f736c680a1f57efea (diff)
downloadgitano-98b46e77a32939a7a623f65135f9db4ea3485148.tar.gz
Switch destroy to use stdout instead of stderr when it ought to
Diffstat (limited to 'lib')
-rw-r--r--lib/gitano/command.lua26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/gitano/command.lua b/lib/gitano/command.lua
index 66be53e..b15c2ca 100644
--- a/lib/gitano/command.lua
+++ b/lib/gitano/command.lua
@@ -603,11 +603,11 @@ local function builtin_destroy_run(config, repo, cmdline, env)
local token = repo:generate_confirmation("destroy repo " .. repo.name)
if #cmdline == 2 then
-- Generate the confirmation token
- log.state("")
- log.state("If you are *certain* you wish to destroy this repository")
- log.state("Then re-run your command with the following confirmation token:")
- log.state("")
- log.state(" ", token)
+ log.stdout("")
+ log.stdout("If you are *certain* you wish to destroy this repository")
+ log.stdout("Then re-run your command with the following confirmation token:")
+ log.stdout("")
+ log.stdout(" ", token)
else
if cmdline[3] ~= token and cmdline[3] ~= '--force' then
log.error("Confirmation token does not match, refusing to destroy")
@@ -623,15 +623,15 @@ local function builtin_destroy_run(config, repo, cmdline, env)
log.error(msg)
return "exit", 1
end
- log.state("Should you need to recover the repository you just destroyed")
- log.state("then you will need to speak with an admin as soon as possible")
- log.state("")
- log.state("When you do, be sure to include the current time (" ..
+ log.stdout("Should you need to recover the repository you just destroyed")
+ log.stdout("then you will need to speak with an admin as soon as possible")
+ log.stdout("")
+ log.stdout("When you do, be sure to include the current time (" ..
nowstamp .. ").")
- log.state("It may also help if you include your token:")
- log.state(" ", token)
- log.state("")
- log.state("Successfully destroyed", repo.name)
+ log.stdout("It may also help if you include your token:")
+ log.stdout(" ", token)
+ log.stdout("")
+ log.stdout("Successfully destroyed", repo.name)
end
return "exit", 0
end