Sha256: c9ee116791b095569dc641686a7eeb97f674ee53d84c0b4c8fea378bf7df15a2
Contents?: true
Size: 1.36 KB
Versions: 1
Compression:
Stored size: 1.36 KB
Contents
#!/usr/bin/env ruby require 'clamp' require 'mayday' require 'colorize' Clamp do self.default_subcommand = "up" MAYDAY_FILE_PATH = "Maydayfile" option "--rules", "RULES_FILE", "The file containing Mayday rules", :default => MAYDAY_FILE_PATH, :attribute_name => :mayday_file_path subcommand "init", "Creates a new Maydayfile" do def execute puts "Creating a new Maydayfile..." Mayday::UserDefinitions.new(mayday_file_path).init puts "Done!".green end end subcommand "up", "Integrate the warnings and errors from Maydayfile into your Xcode project" do def execute puts "Integrating mayday into your project..." Mayday::UserDefinitions.new(mayday_file_path).up puts "Done!".green end end subcommand "down", "Remove the warnings and errors from Maydayfile into your Xcode project" do def execute puts "Removing mayday from your project..." Mayday::UserDefinitions.new(mayday_file_path).down puts "Done!".green end end subcommand "benchmark", "Output benchmark results of running your Maydayfile errors and warnings on your Xcode project" do def execute Mayday::UserDefinitions.new(mayday_file_path).benchmark end end subcommand "run", "Run mayday from the command line" do def execute Mayday::UserDefinitions.new(mayday_file_path).run end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mayday-0.2.0 | bin/mayday |