Sha256: 1035e171898e362b788a539a5dd64ed14080f0022ea45bb9174f7cabe66cf0b7
Contents?: true
Size: 961 Bytes
Versions: 14
Compression:
Stored size: 961 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true if File.exist?(File.expand_path("../../.git", __dir__)) ENV["RUBYOPT"] = ENV["RUBYOPT"].sub("-rsimplecov ", "") ENV["RUBYLIB"] = ENV["RUBYLIB"].sub("#{File.expand_path("..", __dir__)}/lib:", "") gem "decidim-core" end case ARGV[0] when "--component" ARGV.replace(["component", *ARGV[1..-1]]) require "decidim/generators/component_generator" Decidim::Generators::ComponentGenerator.start when "--version" puts Decidim.version when "--help" puts "Decidim #{Decidim.version} Syntax: decidim [options] [App or Module name] https://decidim.org Options: --help display this help and exit --version output version information and exit --component [name] creates a component for Decidim [name] creates an application based on Decidim" else require "decidim/generators/app_generator" Decidim::Generators::AppGenerator.start end
Version data entries
14 entries across 14 versions & 1 rubygems