orphic 0.1.0 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b77e217707ef649f198ffd511b570d9b88df65dc2db8aa91684695cb7b53d44
4
- data.tar.gz: 222a7a070ca254405084255187faa47af7278927e7b11da8f1e948014b88dc9e
3
+ metadata.gz: c2560534daf2a7cf6e71ae498b699bdc02ffd93ec2e6fa67aadd909a9eab4711
4
+ data.tar.gz: ebb96f300f6ac44a12976ba705146bc072282a6ad014037d435fe58ea54221af
5
5
  SHA512:
6
- metadata.gz: '0369a7bfc3e3415153fd402276e447360b5599d10e95b69217660420335f37b4e6510bf67b1abb9ffea02bdeda1c1c5b08fdfa32d6afa50e26c6a3608f237826'
7
- data.tar.gz: 1d625de47b2ba54d932dcf5b8721103f5137935bc99bb13b610f3ee7713cd29e3ffc4f4b068deb59795444d14fad75aaf149c86412e427a30fa5195ecd5d6818
6
+ metadata.gz: c6627982ad5901071d7f4392c49a72a82d35b4f3abc70172c969f3bdee620475064a7eb23defc0e7080c0ef3f51bd20504e95f8d9ca4da6059757a0d01258c4e
7
+ data.tar.gz: 0f8c58cef66df787221045e8e9387a20ab91993773565a3151b5ea00a0143557b3d4bbc63bbd934a7ef53654cd265e8a29a53e76e379e980429c8fa057f88745
@@ -3,7 +3,7 @@
3
3
  require "bundler/setup"
4
4
  require "orphic"
5
5
 
6
- Orphic::HammerOfTheGods.start( ARGV )
6
+ Orphic::Mjolnir.start( ARGV )
7
7
 
8
8
  # You can add fixtures and/or initialization code here to make experimenting
9
9
  # with your gem easier. You can also use a different console, if you like.
data/exe/orphic CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "orphic"
4
- Orphic::HammerOfTheGods.start( ARGV )
4
+ Orphic::Mjolnir.start( ARGV )
@@ -2,5 +2,10 @@ require "orphic/version"
2
2
  require "orphic/cli"
3
3
 
4
4
  module Orphic
5
- puts "Hallo warld!"
5
+ # TODO
6
+ CLI::UI::StdoutRouter.enable
7
+ CLI::UI::Frame.open('Orphic Developer Experience') do
8
+ CLI::UI::Frame.open('Ruby CLI') { puts "The Orphic Ruby CLI utilizes the Thor gem for self-documenting commands and cli-ui gem for UI." }
9
+ puts "Great minds never think alike."
10
+ end
6
11
  end
@@ -1,31 +1,27 @@
1
1
  require 'thor'
2
+ require 'orphic/cli/node'
3
+ require 'orphic/cli/district'
4
+ require 'cli/ui'
2
5
 
3
6
  module Orphic
4
- class HammerOfTheGods < Thor
7
+ class Mjolnir < Thor
5
8
  desc "hello NAME", "This will greet you"
6
9
  long_desc <<-HELLO_WORLD
7
10
 
8
11
  `hello NAME` will print out a message to the person of your choosing.
9
12
 
10
- Brian Kernighan actually wrote the first "Hello, World!" program
11
- as part of the documentation for the BCPL programming language
12
- developed by Martin Richards. BCPL was used while C was being
13
- developed at Bell Labs a few years before the publication of
14
- Kernighan and Ritchie's C book in 1972.
15
-
16
- http://stackoverflow.com/a/12785204
17
13
  HELLO_WORLD
18
14
  option :upcase
19
15
  def hello( name )
20
16
  greeting = "Hello, #{name}"
21
17
  greeting.upcase! if options[:upcase]
22
- puts greeting
23
- end
24
- end
25
- class AlltHecuRsed < Thor
26
- desc "hello PLANET", "say hello to PLANET"
27
- def hello(planet)
28
- puts "Hello #{planet}"
18
+ CLI::UI::Frame.open( greeting ) do
19
+ puts greeting + " from the frame"
20
+ end
29
21
  end
22
+ desc "node COMMANDS", "Node.JS Commands"
23
+ subcommand "node", Orphic::OrphicCli::Node
24
+ desc "map DISTRICT ...ARGS", "View map for a district"
25
+ subcommand "map", Orphic::OrphicCli::District
30
26
  end
31
27
  end
@@ -0,0 +1,65 @@
1
+ module Orphic
2
+ module OrphicCli
3
+ class District < Thor
4
+ desc "district", "Commands for a specific district"
5
+ long_desc <<-DISTRICT
6
+ Commands for a specific district.
7
+
8
+ View districts with <district>.
9
+ DISTRICT
10
+ def district( viewDistrict )
11
+ # implement viewDistrict
12
+ CLI::UI::Frame.open( "Map :: District : " + viewDistrict ) do
13
+ puts "#{viewDistrict}"
14
+ end
15
+ end
16
+ desc "createDistrict", "Create a new district with <createDistrict>"
17
+ long_desc <<-CREATE_DISTRICT
18
+ Create a new district with createDistrict. Base map includes the following options for branching:
19
+
20
+ \x5--AWAKE - The entrypoint. Create command line interfaces, web portals, and related tech.
21
+ \x5--GROW - User Interfaces and Experiences, projects here relate to front-end like React, CSS, and prototypes.
22
+ \x5--DISCOVER - Your current location. Educate your peers or yourself.
23
+ \x5--TRUST - Create authorization, cyphers, and cryptography-related projects.
24
+ \x5--TRUTH - The gateway. Can be used to verify authorizations and is often tied to the Trust District.
25
+ \x5--MAGIC - Let the magic begin! Here you can create ephemeral changes and middleware.
26
+ \x5--POETRY - The poet, the lover, and the coder are of imagination all compact... Code as art.
27
+ \x5--DRIVE - Real-time commands that will effect a concurrent stream or processes.
28
+ \x5--WILL - Databases and permanence.
29
+ \x5--LOYAL - The gauntlet. Test your loyalty with user or unit testing.
30
+ \x5--ENTHUSE - Live events and promotions.
31
+ \x5--CLARITY - The endgame, from your command-line, through staging and production.
32
+ CREATE_DISTRICT
33
+ option :awake
34
+ option :grow
35
+ option :discover
36
+ option :trust
37
+ option :truth
38
+ option :magic
39
+ option :poetry
40
+ option :drive
41
+ option :will
42
+ option :loyal
43
+ option :enthuse
44
+ option :clarity
45
+ def createDistrict ( createDistrict )
46
+ puts "Awake District info" if options[:awake]
47
+ puts "Grow District info" if options[:grow]
48
+ puts "Discover District info" if options[:discover]
49
+ puts "Trust District info" if options[:trust]
50
+ puts "Truth District info" if options[:truth]
51
+ puts "Magic District info" if options[:magic]
52
+ puts "Poetry District info" if options[:poetry]
53
+ puts "Drive District info" if options[:drive]
54
+ puts "Will District info" if options[:will]
55
+ puts "Loyal District info" if options[:loyal]
56
+ puts "Enthuse District info" if options[:enthuse]
57
+ puts "Clarity District info" if options[:clarity]
58
+ # implement createDistrict
59
+ CLI::UI::Frame.open( "Map :: District : Create " + createDistrict ) do
60
+ puts "#{createDistrict}"
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,24 @@
1
+ module Orphic
2
+ module OrphicCli
3
+ class Node < Thor
4
+ desc "help COMMAND", "Get help for the Orphic Node.JS CLI"
5
+ option :tags
6
+ def help ( command )
7
+ CLI::UI::Frame.open( "Node :: help : " + command ) do
8
+ puts "Looks like you are looking for #{command} with tags #{options[:tags]}"
9
+ end
10
+ end
11
+ desc "deploy SITE", "Deploy a Node.JS instance"
12
+ option :baseDistrict
13
+ def deploy ( site )
14
+ CLI::UI::Frame.open( "Node :: deploy : " + site ) do
15
+ if options[:baseDistrict]
16
+ puts "Starting deploy #{site} with #{options[:baseDistrict]}"
17
+ else
18
+ puts "Starting deploy #{site} with no base district."
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -1,3 +1,3 @@
1
1
  module Orphic
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
  spec.add_dependency "thor", "~> 0.20"
32
+ spec.add_dependency "cli-ui", "~> 1.4"
32
33
  spec.add_development_dependency "rspec"
33
34
  spec.add_development_dependency "rspec-nc"
34
35
  spec.add_development_dependency "guard"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orphic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle OBrien
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-31 00:00:00.000000000 Z
11
+ date: 2020-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.20'
27
+ - !ruby/object:Gem::Dependency
28
+ name: cli-ui
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.4'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rspec
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -159,6 +173,8 @@ files:
159
173
  - exe/orphic
160
174
  - lib/orphic.rb
161
175
  - lib/orphic/cli.rb
176
+ - lib/orphic/cli/district.rb
177
+ - lib/orphic/cli/node.rb
162
178
  - lib/orphic/version.rb
163
179
  - orphic.gemspec
164
180
  homepage: https://orphic.enterprises/orphic-cli
@@ -168,7 +184,7 @@ metadata:
168
184
  bug_tracker_uri: https://github.com/orphic-inc/ruby-orphic-cli/issues
169
185
  changlog_uri: https://github.com/orphic-inc/ruby-orphic-cli/blob/main/CHANGELOG.md
170
186
  documentation_uri: https://github.com/orphic-inc/ruby-orphic-cli/blob/main/README.md
171
- source_code_uri: https://github.com/orphic-inc/ruby-orphic-cli/tree/v0.1.0
187
+ source_code_uri: https://github.com/orphic-inc/ruby-orphic-cli/tree/v0.1.5
172
188
  wiki_uri: https://github.com/orphic-inc/ruby-orphic-cli/wiki
173
189
  post_install_message:
174
190
  rdoc_options: []