# -*- coding: UTF-8 -*- require 'build-tool/commands' require 'build-tool/recipe' module BuildTool; module Commands; module Recipes # # BuildCommand # class List < Standard name "list" description "list build recipes" long_description [ "Shows the list of recipes." ] def initialize_options options.banner = "Usage: #{self.fullname} [OPTIONS]..." options.separator( "" ) options.separator( "Options" ) super end def do_execute( args ) recipes = Recipe.all_recipes recipes.keys.sort.each do |name| info( format( "%-20s - %s", name, recipes[name].short_description ) ) end return 0 end end # class end; end # module Commands::Recipes end; # module BuildTool