Sha256: 8c66eb9c1b393d70842957507a806492435a0abf7b16be112385e3522a727fdb
Contents?: true
Size: 858 Bytes
Versions: 4
Compression:
Stored size: 858 Bytes
Contents
class AuthorEngine class CLI def initialize if ARGV[0] && ARGV[0] == "export" if ARGV[1] && ARGV[1].end_with?(".authorengine") require "author_engine/game/opal/exporter" AuthorEngine::OpalExporter.new(project_file: ARGV[1]) else puts "author_engine export project [exported_name]" end elsif ARGV[0] && ARGV[0] == "inflate" if ARGV[1] && ARGV[1].end_with?(".authorengine") if File.exists?(ARGV[1]) savefile = SaveFile.new(ARGV[1]) savefile.inflate! puts "Inflated #{ARGV[1]}" end end elsif ARGV[0] && ARGV[0].end_with?(".authorengine") # The Loader Container handles loading projects AuthorEngine::Window.new.show else AuthorEngine::Window.new.show end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
author_engine-0.9.0 | lib/author_engine/cli.rb |
author_engine-0.8.0 | lib/author_engine/cli.rb |
author_engine-0.7.0 | lib/author_engine/cli.rb |
author_engine-0.6.1 | lib/author_engine/cli.rb |