Sha256: 608056a1faf2fd8283779dd44787958665885a9b0c51eaebabcc315e6a2ba985
Contents?: true
Size: 664 Bytes
Versions: 3
Compression:
Stored size: 664 Bytes
Contents
#!/usr/bin/env ruby ENV["SKIP_CRUD_SETUP"] = "true" require "rails/crud/tools/cli" def display_help puts <<~HELP Usage: crud [command] Commands: init Initialize by generating CRUD and config files gen_crud Generate CRUD gen_config Generate config help Display this help message HELP end if ARGV.empty? || ARGV.include?("help") display_help elsif ARGV.include?("init") RailsCrudTools::CLI.init elsif ARGV.include?("gen_crud") RailsCrudTools::CLI.generate_crud_file elsif ARGV.include?("gen_config") RailsCrudTools::CLI.generate_crudconfig else puts "Unknown command: #{ARGV.join(' ')}" display_help end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails-crud-tools-0.6.0 | exe/crud |
rails-crud-tools-0.5.0 | exe/crud |
rails-crud-tools-0.4.3 | exe/crud |