lib/hyde/cli/helpers.rb in hydeweb-0.1.2 vs lib/hyde/cli/helpers.rb in hydeweb-0.1.3
- old
+ new
@@ -1,10 +1,9 @@
class Hyde
class CLI
module Helpers
- def show_help_for(task)
- name = params.first
+ def show_help_for(name)
task = task(name)
pass "No such command. Try: #{executable} help" unless task
help = task.help
if help
@@ -33,11 +32,12 @@
c0 = "\033[0;m"
puts "#{c1}%10s#{c0} %s" % [ what, cmd ]
end
def no_project
- "Error: This is not a Hyde project.\n" +
- "You may convert it into one by creating a config file:\n" +
+ "Error: no Hyde config file found.\n" +
+ "(Looked for #{Hyde::CONFIG_FILES.join(', ')})\n\n" +
+ "You start by creating a config file for this project:\n" +
" $ #{executable} create .\n\n" +
"You may also create an empty project in a new directory:\n" +
" $ #{executable} create NAME\n"
end