Sha256: 4f4bde5fffc5531acbcce1cc7603a832b2797c59f9e8305b981cf27ee5696abe
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
require "clamp" class Bash < Clamp::Command option ["-v", "--version"], :flag, "Show version" do require "wpb/version" puts "WordPress Bash #{WPB::VERSION} (c) James Birtles" exit 0 end # self.default_subcommand = "console" subcommand ["console", "c"], "Start the wpb console" do def execute require "pry" require "wpb" WPB::App.run WPB.pry end end subcommand "init", "Commands to be run when first using WPB with your wordpress instance" do def execute require "wpb" WPB::App.connect WPB::AddTypeToWpPosts.up end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wpb-0.0.6.pre | lib/wpb/bash.rb |