lib/milestoner/cli/shell.rb in milestoner-13.0.1 vs lib/milestoner/cli/shell.rb in milestoner-13.1.0
- old
+ new
@@ -29,11 +29,11 @@
def perform configuration
case configuration
in action_config: Symbol => action then config action
in action_publish: true then publish configuration
in action_status: true then status
- in action_version: true then logger.info Identity::VERSION_LABEL
+ in action_version: true then logger.info { "Milestoner #{specification.version}" }
else usage
end
end
def config(action) = actions.fetch(__method__).call(action)
@@ -41,9 +41,11 @@
def publish(configuration) = actions.fetch(__method__).call(configuration)
def status = actions.fetch(__method__).call
def usage = logger.unknown { parser.to_s }
+
+ def specification = container[__method__]
def logger = container[__method__]
end
end
end