Sha256: ae5d857c97092ccc79b88414e045aa190fab32a8f0cb2c0da90a8ecaf45b122b

Contents?: true

Size: 551 Bytes

Versions: 2

Compression:

Stored size: 551 Bytes

Contents

# frozen_string_literal: true

require 'dotenv/load'

require_relative '../../static/gem'
require_relative '../../controllers/instance'
require_relative '../../controllers/interfaces/cli'

module NanoBot
  def self.new(cartridge:, state: '-')
    Controllers::Instance.new(cartridge_path: cartridge, state:)
  end

  def self.cli
    Controllers::Interfaces::CLI.handle!
  end

  def self.repl(cartridge:, state: '-')
    Controllers::Instance.new(cartridge_path: cartridge, state:).repl
  end

  def self.version
    NanoBot::GEM[:version]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nano-bots-0.0.2 ports/dsl/nano-bots.rb
nano-bots-0.0.1 ports/dsl/nano-bots.rb