Sha256: 36199130a27765b2a7255a241012c76a09d40b3468dfcffdecb33010dd7544c3

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

module Junction
  module Screens
    class Main < Screen
      def render
        prompt.say('Welcome to the Junction CLI!')
        prompt.say('Please select an option:')
        prompt.select('Options:') do |menu|
          menu.choice 'Create a new project', -> { create_project }
          menu.choice 'Exit', -> { exit }
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
junction-0.1.10 lib/junction/screens/main.rb
junction-0.1.9 lib/junction/screens/main.rb
junction-0.1.8 lib/junction/screens/main.rb