lib/hyde/clicommand.rb in hydeweb-0.0.2.pre vs lib/hyde/clicommand.rb in hydeweb-0.0.3.pre
- old
+ new
@@ -8,10 +8,14 @@
def self.log(str)
ostream << str << "\n"
end
+ def self.out(str)
+ puts str
+ end
+
def self.help
log "Usage: hyde #{self.to_s.downcase.split(':')[-1]}"
log "No help for this command."
end
@@ -24,9 +28,21 @@
log "Error: Hyde config file not found. (looking for: hyde.conf, _config.yml)"
log "Run this command in a Hyde project directory.\nTo start a new Hyde project, type `hyde create <name>`"
exit
end
$project
+ end
+
+ def self.hidden?
+ false
+ end
+
+ def self.hidden(bool = true)
+ class_eval %{
+ def self.hidden?
+ #{bool.inspect}
+ end
+ }
end
def self.desc(str)
class_eval %{
def self.description