orphic 0.1.3 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +8 -3
- data/LICENSE.txt +1 -1
- data/bin/console +1 -1
- data/bin/setup +29 -0
- data/lib/orphic.rb +5 -0
- data/lib/orphic/cli.rb +10 -1
- data/lib/orphic/cli/district.rb +38 -39
- data/lib/orphic/cli/node.rb +14 -1
- data/lib/orphic/cli/spools.rb +28 -0
- data/lib/orphic/cli/sprites/cursor.rb +81 -0
- data/lib/orphic/cli/sprites/flash.rb +6 -0
- data/lib/orphic/cli/sprites/geek.rb +21 -0
- data/lib/orphic/cli/sprites/paji.rb +33 -0
- data/lib/orphic/cli/type.rb +56 -0
- data/lib/orphic/version.rb +1 -1
- data/orphic.gemspec +5 -1
- data/package.json +17 -0
- data/src/main.js +1 -0
- data/tsconfig.json +60 -0
- metadata +72 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ada9df94e25136b9bc904ccb6545f0c58c12746769cdee512f5ea00c7833d243
|
4
|
+
data.tar.gz: 878409e5056c6589c44e3bd627504070cb670a9e87990acc98221b98870241cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 701b671bad7165eecaebcfd694348382551eec03f828e3e96c664d4cb53b47a47dd489cc30b74aedec66b1539edfc7ed19452a6ab2d64f2e929404db48fd3b7a
|
7
|
+
data.tar.gz: 38f24720c83ff341765c7620c96163dfa87e5e2770222a545810cb899143c8d023280f3caf4327ece23074d56769f3e9f273aafdab87d4512a09e5875edba23f
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
+
# Orphic's Ruby CLI
|
1
2
|
# Contributor Covenant Code of Conduct
|
2
3
|
|
3
|
-
##
|
4
|
+
## Orphic's Pledge
|
4
5
|
|
5
6
|
In the interest of fostering an open and welcoming environment, we as
|
6
7
|
contributors and maintainers pledge to making participation in our project and
|
@@ -31,7 +32,7 @@ advances
|
|
31
32
|
* Other conduct which could reasonably be considered inappropriate in a
|
32
33
|
professional setting
|
33
34
|
|
34
|
-
##
|
35
|
+
## Orphic Responsibilities
|
35
36
|
|
36
37
|
Project maintainers are responsible for clarifying the standards of acceptable
|
37
38
|
behavior and are expected to take appropriate and fair corrective action in
|
@@ -55,7 +56,7 @@ further defined and clarified by project maintainers.
|
|
55
56
|
## Enforcement
|
56
57
|
|
57
58
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at
|
59
|
+
reported by contacting the project team at cli@orphic.enterprises. All
|
59
60
|
complaints will be reviewed and investigated and will result in a response that
|
60
61
|
is deemed necessary and appropriate to the circumstances. The project team is
|
61
62
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
@@ -72,3 +73,7 @@ available at [https://contributor-covenant.org/version/1/4][version]
|
|
72
73
|
|
73
74
|
[homepage]: https://contributor-covenant.org
|
74
75
|
[version]: https://contributor-covenant.org/version/1/4/
|
76
|
+
|
77
|
+
## License
|
78
|
+
|
79
|
+
Orphic Ruby CLI License info can be found [here](https://github.com/orphic-inc/ruby-orphic-cli/LICENSE).
|
data/LICENSE.txt
CHANGED
data/bin/console
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require "bundler/setup"
|
4
4
|
require "orphic"
|
5
5
|
|
6
|
-
Orphic::
|
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/bin/setup
CHANGED
@@ -6,3 +6,32 @@ set -vx
|
|
6
6
|
bundle install
|
7
7
|
|
8
8
|
# Do any other automated setup that you need to do here
|
9
|
+
# Install nvm, brew, and checkout-js from bash
|
10
|
+
# Checks git status first to test for git
|
11
|
+
/bin/bash -c "$(git status)"
|
12
|
+
|
13
|
+
# If you don't see a git status reflected as a test
|
14
|
+
# You're doing it wrong, need git installed.
|
15
|
+
|
16
|
+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh |)"
|
17
|
+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
18
|
+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/nvm-sh/install/master/install.sh)"
|
19
|
+
/bin/bash -c "$(nvm install @stable)"
|
20
|
+
/bin/bash -c "$(nvm install 12)"
|
21
|
+
|
22
|
+
|
23
|
+
/bin/bash -c "($brew doctor)"
|
24
|
+
/bin/bash -c "($brew --version)"
|
25
|
+
/bin/bash -c "($rbenv --versions)"
|
26
|
+
|
27
|
+
# rb isn't installed yet but red test
|
28
|
+
|
29
|
+
## try nvm stable or one we know should work
|
30
|
+
|
31
|
+
# Is npm running, this is the ticket
|
32
|
+
/bin/bash -c "$(npm i -g @obrienk/orphic-cli)"
|
33
|
+
|
34
|
+
# Related things cloned via git during setup.
|
35
|
+
git clone https://github.com/bigcommerce/checkout-js
|
36
|
+
git clone https://github.com/streamwall/streamwall
|
37
|
+
git clone https://github.com/obrien-k/multi-sf-cart
|
data/lib/orphic.rb
CHANGED
@@ -3,4 +3,9 @@ require "orphic/cli"
|
|
3
3
|
|
4
4
|
module Orphic
|
5
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
|
data/lib/orphic/cli.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'orphic/cli/node'
|
3
3
|
require 'orphic/cli/district'
|
4
|
+
require 'orphic/cli/type'
|
5
|
+
require 'orphic/cli/spools'
|
6
|
+
require 'cli/ui'
|
4
7
|
|
5
8
|
module Orphic
|
6
9
|
class Mjolnir < Thor
|
@@ -14,11 +17,17 @@ module Orphic
|
|
14
17
|
def hello( name )
|
15
18
|
greeting = "Hello, #{name}"
|
16
19
|
greeting.upcase! if options[:upcase]
|
17
|
-
|
20
|
+
CLI::UI::Frame.open( greeting ) do
|
21
|
+
puts greeting + " from the frame"
|
22
|
+
end
|
18
23
|
end
|
19
24
|
desc "node COMMANDS", "Node.JS Commands"
|
20
25
|
subcommand "node", Orphic::OrphicCli::Node
|
21
26
|
desc "map DISTRICT ...ARGS", "View map for a district"
|
22
27
|
subcommand "map", Orphic::OrphicCli::District
|
28
|
+
desc "media TYPE", "Interface with various media types"
|
29
|
+
subcommand "media", Orphic::OrphicCli::Type
|
30
|
+
desc "spools CURSOR", "Access spools with Paji and Cursor"
|
31
|
+
subcommand "spools", Orphic::OrphicCli::Spools
|
23
32
|
end
|
24
33
|
end
|
data/lib/orphic/cli/district.rb
CHANGED
@@ -5,23 +5,31 @@ module Orphic
|
|
5
5
|
long_desc <<-DISTRICT
|
6
6
|
Commands for a specific district.
|
7
7
|
|
8
|
-
View districts with <district>.
|
9
|
-
|
10
|
-
--awake - The entrypoint, learn more about the Awake district with this option. Aliased with --aw
|
11
|
-
--grow - This typically involves UI/UX and likely what led you to this CLI. Growth continues... Aliased with --gr
|
12
|
-
--discover - Your current location, learn more about the Discover district with this option. Aliased with --di
|
13
|
-
--trust - Relates to cryptography and cyphers.
|
14
|
-
--truth - Relates to verified authorizations.
|
15
|
-
--magic - Let the magic begin! Related to ephemeral changes and middleware.
|
16
|
-
--poetry - The poet, the lover, and the coder are of imagination all compact...
|
17
|
-
--drive - Relates to real-time commands that will effect a concurrent stream or processes.
|
18
|
-
--will - Relates to databases and permanence.
|
19
|
-
--loyal - The gauntlet.
|
20
|
-
--enthuse - Relates to live events and promotions.
|
21
|
-
--clarity - The endgame.
|
22
|
-
|
23
|
-
Or with <createDistrict>, create a new district.
|
8
|
+
View districts with <district>.
|
24
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
|
25
33
|
option :awake
|
26
34
|
option :grow
|
27
35
|
option :discover
|
@@ -34,31 +42,22 @@ module Orphic
|
|
34
42
|
option :loyal
|
35
43
|
option :enthuse
|
36
44
|
option :clarity
|
37
|
-
def district( viewDistrict )
|
38
|
-
# implement viewDistrict
|
39
|
-
baseAwake = "Awake District info" if options[:awake]
|
40
|
-
baseGrow = "Grow District info" if options[:grow]
|
41
|
-
baseDiscover = "Discover District info" if options[:discover]
|
42
|
-
baseTrust = "Trust District info" if options[:trust]
|
43
|
-
baseTruth = "Truth District info" if options[:truth]
|
44
|
-
baseMagic = "Magic District info" if options[:magic]
|
45
|
-
basePoetry = "Poetry District info" if options[:poetry]
|
46
|
-
baseDrive = "Drive District info" if options[:drive]
|
47
|
-
baseWill = "Will District info" if options[:will]
|
48
|
-
baseLoyal = "Loyal District info" if options[:loyal]
|
49
|
-
baseEnthuse = "Enthuse District info" if options[:enthuse]
|
50
|
-
baseClarity = "Clarity District info" if options[:clarity]
|
51
|
-
puts "#{viewDistrict}"
|
52
|
-
end
|
53
|
-
desc "createDistrict", "Create a new district with <createDistrict>"
|
54
|
-
long_desc <<-CREATE_DISTRICT
|
55
|
-
Create a new district with createDistrict.
|
56
|
-
|
57
|
-
TODO
|
58
|
-
CREATE_DISTRICT
|
59
45
|
def createDistrict ( createDistrict )
|
60
46
|
# implement createDistrict
|
61
|
-
|
47
|
+
CLI::UI::Frame.open( "Map :: District : Create " + createDistrict ) do
|
48
|
+
puts "Awake District info" if options[:awake]
|
49
|
+
puts "Grow District info" if options[:grow]
|
50
|
+
puts "Discover District info" if options[:discover]
|
51
|
+
puts "Trust District info" if options[:trust]
|
52
|
+
puts "Truth District info" if options[:truth]
|
53
|
+
puts "Magic District info" if options[:magic]
|
54
|
+
puts "Poetry District info" if options[:poetry]
|
55
|
+
puts "Drive District info" if options[:drive]
|
56
|
+
puts "Will District info" if options[:will]
|
57
|
+
puts "Loyal District info" if options[:loyal]
|
58
|
+
puts "Enthuse District infor" if options[:enthuse]
|
59
|
+
puts ":clarity district info" if options[:clarity]
|
60
|
+
end
|
62
61
|
end
|
63
62
|
end
|
64
63
|
end
|
data/lib/orphic/cli/node.rb
CHANGED
@@ -4,7 +4,20 @@ module Orphic
|
|
4
4
|
desc "help COMMAND", "Get help for the Orphic Node.JS CLI"
|
5
5
|
option :tags
|
6
6
|
def help ( command )
|
7
|
-
|
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
|
8
21
|
end
|
9
22
|
end
|
10
23
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'orphic/cli/sprites/cursor'
|
2
|
+
require 'orphic/cli/sprites/paji'
|
3
|
+
require 'orphic/cli/sprites/flash'
|
4
|
+
|
5
|
+
module Orphic
|
6
|
+
module OrphicCli
|
7
|
+
class Spools < Thor
|
8
|
+
desc "spools", "Access varying sprites and/or districts with Cursor and Paji."
|
9
|
+
long_desc <<-SPOOLS
|
10
|
+
Commands for a specific SPOOL.
|
11
|
+
|
12
|
+
View your current SPOOL by passing a SPOOL argument, use <Cursor> and <Paji> subcommands for accessing different SPOOLs.
|
13
|
+
SPOOLS
|
14
|
+
def spools( viewSpool )
|
15
|
+
# implement viewSpool
|
16
|
+
CLI::UI::Frame.open( "Spool :: " + viewSpool ) do
|
17
|
+
puts "#{viewSpool}"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
desc "spools Cursor", "Access a spool with Cursor"
|
21
|
+
subcommand "Cursor", Orphic::OrphicCli::Cursor
|
22
|
+
desc "spools Paji", "Access a spool with Paji"
|
23
|
+
subcommand "Paji", Orphic::OrphicCli::Paji
|
24
|
+
# desc "spools thread Flash", OrphicCli::Thread::Cursor
|
25
|
+
# subcommand "thread Flash", OrphicCli::Thread::Paji
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
require 'mongo'
|
2
|
+
|
3
|
+
module Orphic
|
4
|
+
module OrphicCli
|
5
|
+
class Cursor < Thor
|
6
|
+
desc "posCursor", "Cursory iterations."
|
7
|
+
long_desc <<-POS_CURSOR
|
8
|
+
Cursory iterations with mongoDB, SQL, and other datasets. Cursor helps
|
9
|
+
find specific info, whereas Paji is better suited for unknown parameters.
|
10
|
+
|
11
|
+
Learn more about DB commands with <Cursor mongoDb help>.
|
12
|
+
POS_CURSOR
|
13
|
+
def posCursor( currentCursor )
|
14
|
+
# implement viewType
|
15
|
+
CLI::UI::Frame.open( "Cursor :: Position : " + currentCursor ) do
|
16
|
+
puts "#{currentCursor}"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
desc "GeekCursor","Geek traversal."
|
20
|
+
long_desc <<-GEEK_CURSOR
|
21
|
+
Info about Geek's instructions, discs, and audio or video if supplied.
|
22
|
+
GEEK_CURSOR
|
23
|
+
option :ins
|
24
|
+
option :disc
|
25
|
+
option :audio
|
26
|
+
option :video
|
27
|
+
def GeekCursor ( currentGeek )
|
28
|
+
CLI::UI::Frame.open( "Cursor :: Geek : " + currentGeek ) do
|
29
|
+
puts "#{currentGeek}"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
desc "mongoDb <mongoURL>", "CRUD commands for mongoDB"
|
33
|
+
long_desc <<-MONGO_DB
|
34
|
+
Pass the mongo URL as an argument to access it.
|
35
|
+
|
36
|
+
Create with --create, read with --read, update with --update, and delete with --delete.
|
37
|
+
MONGO_DB
|
38
|
+
option :create
|
39
|
+
option :read
|
40
|
+
option :update
|
41
|
+
option :delete
|
42
|
+
def mongoDb ( mongoURL )
|
43
|
+
# mongoDB client setup
|
44
|
+
client = Mongo::Client.new( mongoURL )
|
45
|
+
collection = client[:people]
|
46
|
+
|
47
|
+
# example doc for testing
|
48
|
+
doc = {
|
49
|
+
name: 'Steve',
|
50
|
+
hobbies: [ 'hiking', 'tennis', 'fly fishing' ],
|
51
|
+
siblings: {
|
52
|
+
brothers: 0,
|
53
|
+
sisters: 1
|
54
|
+
}
|
55
|
+
}
|
56
|
+
if options[:create]
|
57
|
+
result = collection.insert_one(doc)
|
58
|
+
CLI::UI::Frame.open("Cursor :: MongoDB :: " + mongoURL + ": Create ")
|
59
|
+
puts result.n
|
60
|
+
end
|
61
|
+
if options[:read]
|
62
|
+
collection.find.each do |document|
|
63
|
+
#=> Yields a BSON::Document.
|
64
|
+
CLI::UI::Frame.open( "Cursor :: MongoDB :: " + mongoURL + ": Read ")
|
65
|
+
puts document
|
66
|
+
end
|
67
|
+
end
|
68
|
+
if options[:update]
|
69
|
+
puts "update put"
|
70
|
+
end
|
71
|
+
if options[:delete]
|
72
|
+
puts "Delete option"
|
73
|
+
end
|
74
|
+
# implement mongoURL for viewing current info
|
75
|
+
CLI::UI::Frame.open( "Cursor :: Mongo :: DB : " + mongoURL ) do
|
76
|
+
puts "#{mongoURL}"
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# pseudo-code
|
2
|
+
class Data
|
3
|
+
|
4
|
+
# required datasets
|
5
|
+
def i(ins)
|
6
|
+
# if (Cursor <= i) then
|
7
|
+
puts "i !<= 0"
|
8
|
+
$ins = "ins"
|
9
|
+
return $ins
|
10
|
+
end
|
11
|
+
# instructions, bootload 'this'
|
12
|
+
def d(disc)
|
13
|
+
$d = "disc"
|
14
|
+
puts $d
|
15
|
+
puts "disc"
|
16
|
+
end
|
17
|
+
# check if additional instructions available, if not disconnect
|
18
|
+
# not required but recommended for when things break
|
19
|
+
$a = __FILE__
|
20
|
+
$v = __LINE__
|
21
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Orphic
|
2
|
+
module OrphicCli
|
3
|
+
class Paji < Thor
|
4
|
+
desc "posPaji", "Paginated info."
|
5
|
+
long_desc <<-POS_PAJI
|
6
|
+
Positional info about pagination.
|
7
|
+
|
8
|
+
Paji differs from Cursor in that it gives relational data for unspecific
|
9
|
+
fetching.
|
10
|
+
POS_PAJI
|
11
|
+
def posPaji( currentPaji )
|
12
|
+
# implement posPaji
|
13
|
+
CLI::UI::Frame.open( "Paji :: Position : " + currentPaji ) do
|
14
|
+
puts "#{currentPaji}"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
desc "updatePaji", "Update your Paji to a different location."
|
18
|
+
long_desc <<-UPDATE_PAJI
|
19
|
+
Update an existing Paji to the previous or next location available.
|
20
|
+
UPDATE_PAJI
|
21
|
+
option :previous
|
22
|
+
option :next
|
23
|
+
def updatePaji ( )
|
24
|
+
puts "previous option passed" if options[:previous]
|
25
|
+
puts "next option passed" if options[:next]
|
26
|
+
# implement updatePaji
|
27
|
+
CLI::UI::Frame.open( "Paji :: Update") do
|
28
|
+
puts "Paji updated"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
module Orphic
|
2
|
+
module OrphicCli
|
3
|
+
class Type < Thor
|
4
|
+
desc "type", "Interface with specific media TYPEs like mp4, mp3, flac, exe, and app."
|
5
|
+
long_desc <<-TYPE
|
6
|
+
Commands for a specific TYPE.
|
7
|
+
|
8
|
+
Learn more about a type with <type> help. Supported types include: mp3, mp4, flac, exe, app, wav, mkv, bin, jar, rb, js, ts, html, css.
|
9
|
+
TYPE
|
10
|
+
def type( viewType )
|
11
|
+
# implement viewType
|
12
|
+
CLI::UI::Frame.open( "Media :: Type : " + viewType ) do
|
13
|
+
puts "#{viewType}"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
desc "createMedia", "Create a new file with a specific TYPE"
|
17
|
+
long_desc <<-CREATE_MEDIA
|
18
|
+
Create a new file with createMedia.
|
19
|
+
CREATE_MEDIA
|
20
|
+
option :mp3
|
21
|
+
option :mp4
|
22
|
+
option :flac
|
23
|
+
option :exe
|
24
|
+
option :app
|
25
|
+
option :wav
|
26
|
+
option :mkv
|
27
|
+
option :bin
|
28
|
+
option :jar
|
29
|
+
option :rb
|
30
|
+
option :js
|
31
|
+
option :ts
|
32
|
+
option :html
|
33
|
+
option :css
|
34
|
+
def createMedia ( createMedia )
|
35
|
+
puts "MP3 file created" if options[:mp3]
|
36
|
+
puts "MP4 file created" if options[:mp4]
|
37
|
+
puts "FLAC file created" if options[:flac]
|
38
|
+
puts "EXE file created" if options[:exe]
|
39
|
+
puts "APP file created" if options[:app]
|
40
|
+
puts "WAV file created" if options[:wav]
|
41
|
+
puts "MKV file created" if options[:mkv]
|
42
|
+
puts "BIN file created" if options[:bin]
|
43
|
+
puts "JAR file created" if options[:jar]
|
44
|
+
puts "RB file created" if options[:rb]
|
45
|
+
puts "JS file created" if options[:js]
|
46
|
+
puts "TS file created" if options[:ts]
|
47
|
+
puts "HTML file created" if options[:html]
|
48
|
+
puts "CSS file created" if options[:css]
|
49
|
+
# implement createDistrict
|
50
|
+
CLI::UI::Frame.open( "Map :: Media : Create " + createMedia ) do
|
51
|
+
puts "#{createMedia}"
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
data/lib/orphic/version.rb
CHANGED
data/orphic.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.authors = ["Kyle OBrien"]
|
7
7
|
spec.email = ["obrienk@webbhost.net"]
|
8
8
|
|
9
|
-
spec.description = "Orphic is a toolkit for building boilerplate interfaces
|
9
|
+
spec.description = "Orphic is a toolkit and mechanism for building boilerplate interfaces, plugins, and streaming content"
|
10
10
|
spec.summary = spec.description
|
11
11
|
spec.homepage = "https://orphic.enterprises/orphic-cli"
|
12
12
|
spec.license = "MIT"
|
@@ -29,6 +29,10 @@ 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"
|
33
|
+
spec.add_dependency "stripe", "~> 5.28"
|
34
|
+
spec.add_dependency "rails", "~> 6.0.3"
|
35
|
+
spec.add_dependency "mongo", "~> 2.14.0.rc1"
|
32
36
|
spec.add_development_dependency "rspec"
|
33
37
|
spec.add_development_dependency "rspec-nc"
|
34
38
|
spec.add_development_dependency "guard"
|
data/package.json
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
{
|
2
|
+
"name": "typescript-template",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "",
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"scripts": {
|
7
|
+
"build": "tsc",
|
8
|
+
"dev": "tsc --watch",
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
10
|
+
},
|
11
|
+
"keywords": [],
|
12
|
+
"author": "Kyle <kyle@kyleo.io> (https://kyleo.io)",
|
13
|
+
"license": "MIT",
|
14
|
+
"devDependencies": {
|
15
|
+
"typescript": "^3.3.3333"
|
16
|
+
}
|
17
|
+
}
|
data/src/main.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
console.log('Welcome to the Internet, from TypeScript!');
|
data/tsconfig.json
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
/* Basic Options */
|
4
|
+
"target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
|
5
|
+
"module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
|
6
|
+
// "lib": [WitchSuiteLib], /* Specify library files to be included in the compilation. */
|
7
|
+
// "allowJs": true, /* Allow javascript files to be compiled. */
|
8
|
+
// "checkJs": true, /* Report errors in .js files. */
|
9
|
+
// "jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
10
|
+
"declaration": true /* Generates corresponding '.d.ts' file. */,
|
11
|
+
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
12
|
+
"sourceMap": true /* Generates corresponding '.map' file. */,
|
13
|
+
// "outFile": "./", /* Concatenate and emit output to single file. */
|
14
|
+
"outDir": "./dist" /* Redirect output structure to the directory. */,
|
15
|
+
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
16
|
+
// "composite": true, /* Enable project compilation */
|
17
|
+
// "removeComments": true, /* Do not emit comments to output. */
|
18
|
+
// "noEmit": true, /* Do not emit outputs. */
|
19
|
+
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
20
|
+
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
21
|
+
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
22
|
+
|
23
|
+
/* Strict Type-Checking Options */
|
24
|
+
"strict": true /* Enable all strict type-checking options. */,
|
25
|
+
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
26
|
+
// "strictNullChecks": true, /* Enable strict null checks. */
|
27
|
+
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
28
|
+
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
29
|
+
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
30
|
+
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
31
|
+
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
32
|
+
|
33
|
+
/* Additional Checks */
|
34
|
+
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
35
|
+
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
36
|
+
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
37
|
+
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
38
|
+
|
39
|
+
/* Module Resolution Options */
|
40
|
+
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
41
|
+
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
42
|
+
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
43
|
+
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
44
|
+
// "typeRoots": [], /* List of folders to include type definitions from. */
|
45
|
+
// "types": [], /* Type declaration files to be included in compilation. */
|
46
|
+
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
47
|
+
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
48
|
+
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
49
|
+
|
50
|
+
/* Source Map Options */
|
51
|
+
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
52
|
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
53
|
+
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
54
|
+
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
55
|
+
|
56
|
+
/* Experimental Options */
|
57
|
+
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
58
|
+
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
59
|
+
}
|
60
|
+
}
|
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.
|
4
|
+
version: 0.1.8
|
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-
|
11
|
+
date: 2020-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -24,6 +24,62 @@ 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'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: stripe
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.28'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.28'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 6.0.3
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 6.0.3
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: mongo
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.14.0.rc1
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.14.0.rc1
|
27
83
|
- !ruby/object:Gem::Dependency
|
28
84
|
name: rspec
|
29
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,7 +192,8 @@ dependencies:
|
|
136
192
|
- - ">="
|
137
193
|
- !ruby/object:Gem::Version
|
138
194
|
version: '0'
|
139
|
-
description: Orphic is a toolkit for building boilerplate interfaces
|
195
|
+
description: Orphic is a toolkit and mechanism for building boilerplate interfaces,
|
196
|
+
plugins, and streaming content
|
140
197
|
email:
|
141
198
|
- obrienk@webbhost.net
|
142
199
|
executables:
|
@@ -161,8 +218,17 @@ files:
|
|
161
218
|
- lib/orphic/cli.rb
|
162
219
|
- lib/orphic/cli/district.rb
|
163
220
|
- lib/orphic/cli/node.rb
|
221
|
+
- lib/orphic/cli/spools.rb
|
222
|
+
- lib/orphic/cli/sprites/cursor.rb
|
223
|
+
- lib/orphic/cli/sprites/flash.rb
|
224
|
+
- lib/orphic/cli/sprites/geek.rb
|
225
|
+
- lib/orphic/cli/sprites/paji.rb
|
226
|
+
- lib/orphic/cli/type.rb
|
164
227
|
- lib/orphic/version.rb
|
165
228
|
- orphic.gemspec
|
229
|
+
- package.json
|
230
|
+
- src/main.js
|
231
|
+
- tsconfig.json
|
166
232
|
homepage: https://orphic.enterprises/orphic-cli
|
167
233
|
licenses:
|
168
234
|
- MIT
|
@@ -170,7 +236,7 @@ metadata:
|
|
170
236
|
bug_tracker_uri: https://github.com/orphic-inc/ruby-orphic-cli/issues
|
171
237
|
changlog_uri: https://github.com/orphic-inc/ruby-orphic-cli/blob/main/CHANGELOG.md
|
172
238
|
documentation_uri: https://github.com/orphic-inc/ruby-orphic-cli/blob/main/README.md
|
173
|
-
source_code_uri: https://github.com/orphic-inc/ruby-orphic-cli/tree/v0.1.
|
239
|
+
source_code_uri: https://github.com/orphic-inc/ruby-orphic-cli/tree/v0.1.8
|
174
240
|
wiki_uri: https://github.com/orphic-inc/ruby-orphic-cli/wiki
|
175
241
|
post_install_message:
|
176
242
|
rdoc_options: []
|
@@ -190,5 +256,6 @@ requirements: []
|
|
190
256
|
rubygems_version: 3.1.4
|
191
257
|
signing_key:
|
192
258
|
specification_version: 4
|
193
|
-
summary: Orphic is a toolkit for building boilerplate interfaces
|
259
|
+
summary: Orphic is a toolkit and mechanism for building boilerplate interfaces, plugins,
|
260
|
+
and streaming content
|
194
261
|
test_files: []
|