Sha256: 9e9cf64e306bbd1be7af177ebf098d1b3f30ff06929012ce362c824e784948ee

Contents?: true

Size: 581 Bytes

Versions: 5

Compression:

Stored size: 581 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].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

5 entries across 5 versions & 1 rubygems

Version Path
author_engine-0.6.0 lib/author_engine/cli.rb
author_engine-0.5.0 lib/author_engine/cli.rb
author_engine-0.4.0 lib/author_engine/cli.rb
author_engine-0.3.1 lib/author_engine/cli.rb
author_engine-0.3.0 lib/author_engine/cli.rb