aro 0.1.6 → 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/.gitignore +5 -5
- data/.ruby-version +1 -1
- data/Gemfile.lock +32 -14
- data/aro.gemspec +17 -8
- data/bin/aos +19 -0
- data/bin/aro +24 -24
- data/checksums/aro-0.1.6.gem.sha512 +1 -0
- data/checksums/aro-0.1.7.gem.sha512 +1 -0
- data/checksums/aro-0.1.8.gem.sha512 +1 -0
- data/db/migrate/1763374647_create_decks.rb +3 -0
- data/db/migrate/1763432541_create_logs.rb +1 -0
- data/db/migrate/1765148774_create_yous.rb +19 -0
- data/listen.rb +10 -0
- data/locale/en.aos.yml +27 -0
- data/locale/en.cngelog.yml +5 -0
- data/locale/en.usage.yml +55 -38
- data/locale/en.yml +47 -15
- data/sys/aos/aos.rb +199 -0
- data/sys/aos/db.rb +81 -0
- data/sys/aos/s.rb +25 -0
- data/sys/aos/views/base.rb +139 -0
- data/sys/aos/views/dom.rb +45 -0
- data/sys/aos/views/games/abpps.rb +21 -0
- data/sys/aos/views/games/deck.rb +95 -0
- data/sys/aos/views/games/game.rb +24 -0
- data/sys/aos/views/games/hbpps.rb +21 -0
- data/sys/aos/views/games/shpps.rb +21 -0
- data/sys/aos/views/games/vipps.rb +21 -0
- data/sys/aos/views/games.rb +19 -0
- data/sys/aos/views/know/library.rb +19 -0
- data/sys/aos/views/know/temple.rb +19 -0
- data/sys/aos/views/know.rb +19 -0
- data/sys/aos/views/setup/settings.rb +50 -0
- data/sys/aos/views/setup.rb +19 -0
- data/sys/aos/views/welcome/waite.rb +19 -0
- data/sys/aos/views/welcome/winner.rb +19 -0
- data/sys/aos/views/welcome.rb +19 -0
- data/sys/aos/you.rb +15 -0
- data/sys/aro/d.rb +25 -0
- data/sys/aro/db.rb +89 -0
- data/sys/aro/mancy.rb +114 -0
- data/sys/aro/p.rb +25 -0
- data/sys/aro/r.rb +20 -0
- data/sys/aro/v.rb +24 -0
- data/sys/aro.rb +16 -0
- data/sys/cli/config.rb +582 -0
- data/sys/cli/constants.rb +56 -0
- data/{bin → sys}/cli/create.rb +6 -4
- data/sys/cli/deck.rb +98 -0
- data/sys/cli/dom.rb +37 -0
- data/sys/cli/nterface.rb +31 -0
- data/{bin → sys}/cli/usage.rb +1 -1
- data/sys/cli.rb +26 -0
- data/sys/dom/d.rb +101 -0
- data/sys/dom/dom.rb +161 -0
- data/sys/dom/p.rb +17 -0
- data/sys/models/deck.rb +218 -0
- data/sys/models/log.rb +20 -0
- data/sys/reiquire.rb +45 -0
- data/sys/shr/prompt.rb +37 -0
- data/sys/shr/t.rb +60 -0
- data/sys/shr/version.rb +16 -0
- data/tasks/make.rake +2 -2
- metadata +78 -22
- data/.release +0 -20
- data/bin/cli/config.rb +0 -231
- data/bin/cli/constants.rb +0 -39
- data/bin/cli/deck.rb +0 -100
- data/bin/cli.rb +0 -39
- data/lib/aro/c.rb +0 -32
- data/lib/aro/create.rb +0 -29
- data/lib/aro/db.rb +0 -107
- data/lib/aro/environment.rb +0 -3
- data/lib/aro/i18n.rb +0 -12
- data/lib/aro/prompt.rb +0 -25
- data/lib/aro/version.rb +0 -4
- data/lib/aro.rb +0 -45
- data/lib/models/deck.rb +0 -294
- data/lib/models/log.rb +0 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 345792256f8f05280325a6624e2b48f4dffbd0215edd29e166d299c9b43a1824
|
|
4
|
+
data.tar.gz: ede644cd354d9a8e51ec0081284122546266d1e74ddc7af263eddf7f97e150fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: af57fefc8b44ce65dea0f8b94e1d2a6de610875b15a1d3682d5a07d9fcd8537b54f94461da569b877269933fbe4c27c0e84770118b7221904bf8ec0364e27fdf
|
|
7
|
+
data.tar.gz: 8a4a5bd92dd6056a3af2e76760912e2785d2bf95c535a0046302e9d67fa4e227c974f1f607125c9723d8912b7bd28d1c1cc2056fbc66186dfd81ee203f54025f
|
data/.gitignore
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
*.aro
|
|
2
|
+
*.aro_test
|
|
3
|
+
*.log
|
|
4
|
+
*.name
|
|
5
5
|
*.sql
|
|
6
|
-
|
|
6
|
+
pkg/*
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3.4.7
|
data/Gemfile.lock
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
aro (0.1.
|
|
4
|
+
aro (0.1.7)
|
|
5
5
|
activerecord (~> 8.1, >= 8.1.1)
|
|
6
6
|
i18n (~> 1.14, >= 1.14.7)
|
|
7
|
+
listen (~> 3.9, >= 3.9.0)
|
|
7
8
|
sqlite3 (~> 2.8, >= 2.8.0)
|
|
8
9
|
tty-prompt (~> 0.23.1, >= 0.23.1)
|
|
9
10
|
|
|
@@ -32,17 +33,33 @@ GEM
|
|
|
32
33
|
base64 (0.3.0)
|
|
33
34
|
bigdecimal (3.3.1)
|
|
34
35
|
concurrent-ruby (1.3.5)
|
|
35
|
-
connection_pool (
|
|
36
|
+
connection_pool (3.0.2)
|
|
36
37
|
diff-lcs (1.6.2)
|
|
37
38
|
drb (2.2.3)
|
|
39
|
+
ffi (1.17.2-aarch64-linux-gnu)
|
|
40
|
+
ffi (1.17.2-aarch64-linux-musl)
|
|
41
|
+
ffi (1.17.2-arm-linux-gnu)
|
|
42
|
+
ffi (1.17.2-arm-linux-musl)
|
|
43
|
+
ffi (1.17.2-arm64-darwin)
|
|
44
|
+
ffi (1.17.2-x86-linux-gnu)
|
|
45
|
+
ffi (1.17.2-x86-linux-musl)
|
|
46
|
+
ffi (1.17.2-x86_64-darwin)
|
|
47
|
+
ffi (1.17.2-x86_64-linux-gnu)
|
|
48
|
+
ffi (1.17.2-x86_64-linux-musl)
|
|
38
49
|
i18n (1.14.7)
|
|
39
50
|
concurrent-ruby (~> 1.0)
|
|
40
|
-
json (2.
|
|
51
|
+
json (2.17.1)
|
|
52
|
+
listen (3.9.0)
|
|
53
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
54
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
|
41
55
|
logger (1.7.0)
|
|
42
|
-
minitest (5.26.
|
|
56
|
+
minitest (5.26.2)
|
|
43
57
|
pastel (0.8.0)
|
|
44
58
|
tty-color (~> 0.5)
|
|
45
59
|
rake (13.3.1)
|
|
60
|
+
rb-fsevent (0.11.2)
|
|
61
|
+
rb-inotify (0.11.1)
|
|
62
|
+
ffi (~> 1.0)
|
|
46
63
|
rspec (3.13.2)
|
|
47
64
|
rspec-core (~> 3.13.0)
|
|
48
65
|
rspec-expectations (~> 3.13.0)
|
|
@@ -57,16 +74,16 @@ GEM
|
|
|
57
74
|
rspec-support (~> 3.13.0)
|
|
58
75
|
rspec-support (3.13.6)
|
|
59
76
|
securerandom (0.4.1)
|
|
60
|
-
sqlite3 (2.8.
|
|
61
|
-
sqlite3 (2.8.
|
|
62
|
-
sqlite3 (2.8.
|
|
63
|
-
sqlite3 (2.8.
|
|
64
|
-
sqlite3 (2.8.
|
|
65
|
-
sqlite3 (2.8.
|
|
66
|
-
sqlite3 (2.8.
|
|
67
|
-
sqlite3 (2.8.
|
|
68
|
-
sqlite3 (2.8.
|
|
69
|
-
sqlite3 (2.8.
|
|
77
|
+
sqlite3 (2.8.1-aarch64-linux-gnu)
|
|
78
|
+
sqlite3 (2.8.1-aarch64-linux-musl)
|
|
79
|
+
sqlite3 (2.8.1-arm-linux-gnu)
|
|
80
|
+
sqlite3 (2.8.1-arm-linux-musl)
|
|
81
|
+
sqlite3 (2.8.1-arm64-darwin)
|
|
82
|
+
sqlite3 (2.8.1-x86-linux-gnu)
|
|
83
|
+
sqlite3 (2.8.1-x86-linux-musl)
|
|
84
|
+
sqlite3 (2.8.1-x86_64-darwin)
|
|
85
|
+
sqlite3 (2.8.1-x86_64-linux-gnu)
|
|
86
|
+
sqlite3 (2.8.1-x86_64-linux-musl)
|
|
70
87
|
timeout (0.4.4)
|
|
71
88
|
tty-color (0.6.0)
|
|
72
89
|
tty-cursor (0.7.1)
|
|
@@ -92,6 +109,7 @@ PLATFORMS
|
|
|
92
109
|
x86-linux-gnu
|
|
93
110
|
x86-linux-musl
|
|
94
111
|
x86_64-darwin
|
|
112
|
+
x86_64-linux
|
|
95
113
|
x86_64-linux-gnu
|
|
96
114
|
x86_64-linux-musl
|
|
97
115
|
|
data/aro.gemspec
CHANGED
|
@@ -1,26 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
=begin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
aro.gemspec
|
|
4
|
+
|
|
5
|
+
aro gem specification.
|
|
6
|
+
|
|
7
|
+
by i2097i
|
|
8
|
+
|
|
9
|
+
=end
|
|
10
|
+
|
|
11
|
+
require_relative :"sys/shr/version".to_s
|
|
4
12
|
|
|
5
13
|
Gem::Specification.new do |spec|
|
|
6
14
|
spec.name = "aro"
|
|
7
|
-
spec.version = Aro::VERSION
|
|
15
|
+
spec.version = Aro::VERSION.to_s
|
|
8
16
|
spec.authors = ["i2097i"]
|
|
9
17
|
spec.email = ["i2097i@hotmail.com"]
|
|
10
18
|
spec.description = "a cli for tarot."
|
|
11
|
-
spec.summary =
|
|
19
|
+
spec.summary = Aro::RELEASE_NOTES.to_s
|
|
12
20
|
spec.homepage = "https://github.com/i2097i/aro"
|
|
13
21
|
spec.license = "MIT"
|
|
14
|
-
|
|
15
|
-
spec.files = `git ls-files`.split("\n").reject{|f| f.match(%r{^(spec|pkg)/})}
|
|
22
|
+
spec.files = `git ls-files`.split("\n").reject{|p| p.match?(/^(spec|.release|.*.gem$)/)}
|
|
16
23
|
spec.bindir = "bin"
|
|
17
|
-
spec.executables = ["aro"]
|
|
18
|
-
spec.require_paths = ["
|
|
24
|
+
spec.executables = ["aro", "aos"]
|
|
25
|
+
spec.require_paths = ["sys"]
|
|
26
|
+
spec.required_ruby_version = ">= 3.4.7"
|
|
19
27
|
|
|
20
28
|
# development gems
|
|
21
29
|
spec.add_development_dependency "bundler", "~> 2.7", ">= 2.7.2"
|
|
22
30
|
spec.add_development_dependency "rake", "~> 13.3", ">= 13.3.1"
|
|
23
31
|
spec.add_development_dependency "rspec", "~> 3.13", ">= 3.13.2"
|
|
32
|
+
spec.add_development_dependency "listen", "~> 3.9", ">= 3.9.0"
|
|
24
33
|
|
|
25
34
|
# runtime gems
|
|
26
35
|
spec.add_runtime_dependency "i18n", "~> 1.14", ">= 1.14.7"
|
data/bin/aos
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#! /usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
=begin
|
|
4
|
+
|
|
5
|
+
aos
|
|
6
|
+
|
|
7
|
+
entry point for aos.
|
|
8
|
+
|
|
9
|
+
by i2097i
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require :aro.to_s
|
|
14
|
+
|
|
15
|
+
if CLI::ARGV0 == CLI::CMDS[:AOS][:WATCH]
|
|
16
|
+
Aos::watch
|
|
17
|
+
else CLI::ARGV0 == CLI::CMDS[:AOS][:RUN] || CLI::ARGV0.nil?
|
|
18
|
+
exit(Aos::run)
|
|
19
|
+
end
|
data/bin/aro
CHANGED
|
@@ -4,41 +4,41 @@
|
|
|
4
4
|
|
|
5
5
|
aro
|
|
6
6
|
|
|
7
|
-
entry point for the aro cli
|
|
7
|
+
entry point for the aro cli.
|
|
8
8
|
|
|
9
9
|
by i2097i
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
require :aro.to_s
|
|
14
14
|
|
|
15
15
|
# todo: add tab completion using abbrev gem
|
|
16
16
|
# https://stackoverflow.com/a/11627931
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
end
|
|
18
|
+
if CLI::FLAGS[:VERSION].include?(CLI::ARGV0)
|
|
19
|
+
Aro::P.say(Aro::VERSION)
|
|
20
|
+
exit(CLI::EXIT_CODES[:SUCCESS])
|
|
21
|
+
end
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
CLI::usage
|
|
23
|
+
# cli parser
|
|
24
|
+
case CLI::ARGV0
|
|
25
|
+
when CLI::CMDS[:ARO][:CONFIG]
|
|
26
|
+
CLI::config
|
|
27
|
+
when CLI::CMDS[:ARO][:CREATE]
|
|
28
|
+
CLI::create
|
|
29
|
+
when CLI::CMDS[:ARO][:DECK]
|
|
30
|
+
CLI::deck
|
|
31
|
+
when CLI::CMDS[:ARO][:DOM]
|
|
32
|
+
CLI::dom
|
|
33
|
+
when CLI::CMDS[:ARO][:INIT]
|
|
34
|
+
Aro::Mancy.init
|
|
35
|
+
else
|
|
36
|
+
unless Aro::Mancy.game.nil? || CLI::FLAGS[:HELP].include?(CLI::ARGV0)
|
|
37
|
+
Aro::P.say(I18n.t("cli.messages.welcome", name: "#{Aro::Mancy.name}.game"))
|
|
38
|
+
Aro::Mancy.game.show
|
|
41
39
|
exit(CLI::EXIT_CODES[:SUCCESS])
|
|
42
40
|
end
|
|
43
41
|
|
|
42
|
+
CLI.usage
|
|
43
|
+
exit(CLI::EXIT_CODES[:SUCCESS])
|
|
44
44
|
end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
52fd8d90abad947eb27a4dc634f2048128d42349005d1b9f93a52518332cf8e14433b05170d077453b5753b83a6f6b7c9df36fc575e792ca2a5dbf3312e06f59
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e514a75bfef8d203ecb961b0488476804a588baf5ba04d43457adf3ae554028233205e289e633198bb88b46eac2a4a896a0c6beac350e742c82d04992b65a9ad
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a81a98088e88fd7b8a12c6919a8b4b3b27fc11258e1a453006b0c1eb856eb023c6219aab39343bbceeab6349bac0e2491176734fc840eb8945efa72d742ee9e8
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
class CreateYous < ActiveRecord::Migration[8.1]
|
|
2
|
+
|
|
3
|
+
def self.up
|
|
4
|
+
create_table :yous do |t|
|
|
5
|
+
t.string :name, null: false
|
|
6
|
+
t.string :pwd
|
|
7
|
+
|
|
8
|
+
t.timestamps
|
|
9
|
+
|
|
10
|
+
t.index :name, unique: true
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def self.down
|
|
15
|
+
remove_index :yous, :name
|
|
16
|
+
drop_table :yous
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
end
|
data/listen.rb
ADDED
data/locale/en.aos.yml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
en:
|
|
2
|
+
aos:
|
|
3
|
+
commands:
|
|
4
|
+
description:
|
|
5
|
+
cd: "change directory. no args navigates to arodom root."
|
|
6
|
+
config: "open settings."
|
|
7
|
+
config_set: "set a ivar config variable to a specified value."
|
|
8
|
+
exit: "exit."
|
|
9
|
+
ls: "list files and folders in the pwd."
|
|
10
|
+
pwd: "show pwd."
|
|
11
|
+
usage:
|
|
12
|
+
cd: "$ cd <name>"
|
|
13
|
+
config: "$ config"
|
|
14
|
+
config_set: "$ config set <var_name> <var_value>"
|
|
15
|
+
exit: "$ exit"
|
|
16
|
+
ls: "$ ls"
|
|
17
|
+
pwd: "$ pwd"
|
|
18
|
+
constants:
|
|
19
|
+
commands: "COMMANDS"
|
|
20
|
+
views:
|
|
21
|
+
dom:
|
|
22
|
+
title: "welcome to the dom. this is the hub of the arodome running on Aos::Os."
|
|
23
|
+
description: "this is the root space where you begin. available commands are listed below."
|
|
24
|
+
quick_navigation: "the following room names are reserved for quick navigation. enter any of them to navigate to that room."
|
|
25
|
+
game:
|
|
26
|
+
title: "aro"
|
|
27
|
+
description: "enter commands to play."
|
data/locale/en.usage.yml
CHANGED
|
@@ -1,63 +1,76 @@
|
|
|
1
1
|
en:
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
usage:
|
|
3
|
+
main: |
|
|
4
4
|
NAME
|
|
5
5
|
|
|
6
|
-
aro - a cli for tarot.
|
|
6
|
+
aro - a cli for tarot games in the arodom.
|
|
7
7
|
|
|
8
8
|
SYNOPSIS
|
|
9
9
|
|
|
10
10
|
aro [-v | --version] [-h | --help] <command1> <command2>
|
|
11
11
|
|
|
12
|
-
to pick up where you left off, simply enter the following command:
|
|
13
|
-
|
|
14
|
-
$ aro
|
|
15
|
-
|
|
16
12
|
COMMANDS
|
|
17
|
-
|
|
18
|
-
there are two primary commands in the aro. one is to create and the
|
|
19
|
-
other is to play.
|
|
20
|
-
|
|
21
13
|
create
|
|
22
|
-
create an aro
|
|
14
|
+
create and init an aro game room named <name>:
|
|
23
15
|
|
|
24
|
-
|
|
16
|
+
$ aro create <name>
|
|
25
17
|
|
|
26
|
-
|
|
18
|
+
init
|
|
19
|
+
set up the .aro directory that contains database and config
|
|
27
20
|
|
|
28
|
-
|
|
21
|
+
note:
|
|
22
|
+
this runs by default after create and has no effect if init is complete.
|
|
29
23
|
|
|
30
24
|
config
|
|
31
|
-
|
|
25
|
+
config management (ex: update preferences)
|
|
26
|
+
todo:
|
|
32
27
|
|
|
33
28
|
deck
|
|
34
|
-
|
|
29
|
+
manage decks in the current room
|
|
35
30
|
|
|
36
|
-
|
|
31
|
+
$ aro deck <commands>
|
|
37
32
|
|
|
38
|
-
|
|
33
|
+
note:
|
|
39
34
|
|
|
40
|
-
|
|
35
|
+
deck subcommands do not require typing 'deck'. for example,
|
|
41
36
|
|
|
42
|
-
|
|
37
|
+
$ aro deck show
|
|
43
38
|
|
|
44
|
-
|
|
39
|
+
is the same thing as:
|
|
45
40
|
|
|
46
|
-
|
|
41
|
+
$ aro show
|
|
42
|
+
|
|
43
|
+
SUBCOMMANDS
|
|
44
|
+
draw
|
|
45
|
+
draw a random card from the current deck.
|
|
46
|
+
|
|
47
|
+
explore
|
|
48
|
+
allows user to browse each card in the current deck.
|
|
49
|
+
|
|
50
|
+
new
|
|
51
|
+
create a new deck with the specified name.
|
|
47
52
|
|
|
48
53
|
example:
|
|
49
54
|
|
|
50
|
-
$ aro deck
|
|
55
|
+
$ aro deck new <name>
|
|
51
56
|
|
|
52
|
-
|
|
57
|
+
replace
|
|
58
|
+
replaces all drawn cards FIFO and puts them on the bottom of
|
|
59
|
+
the deck. this will preserve all card orientations.
|
|
60
|
+
|
|
61
|
+
reset
|
|
62
|
+
completely reset the deck. replace all drawn and reset order.
|
|
63
|
+
all orientations will be set to upright. you must enter 'aroyes'
|
|
64
|
+
to continue.
|
|
53
65
|
|
|
66
|
+
show
|
|
54
67
|
displays the current deck's log record(s).
|
|
55
68
|
|
|
56
69
|
the default behavior is to display only the most recent log record.
|
|
57
70
|
|
|
58
71
|
note:
|
|
59
72
|
|
|
60
|
-
'less' is automatically used to
|
|
73
|
+
'less' is automatically used to view text output log count > 1
|
|
61
74
|
|
|
62
75
|
OPTIONS
|
|
63
76
|
|
|
@@ -74,26 +87,30 @@ en:
|
|
|
74
87
|
possible values: ['asc', 'desc']
|
|
75
88
|
|
|
76
89
|
shuffle
|
|
77
|
-
|
|
78
90
|
shuffles the current deck and generates a log record.
|
|
79
91
|
|
|
80
|
-
|
|
92
|
+
dom
|
|
93
|
+
create or manage an arodome (ex: list game rooms)
|
|
81
94
|
|
|
82
|
-
|
|
95
|
+
$ aro dom <commands>
|
|
83
96
|
|
|
84
|
-
|
|
97
|
+
note: passing no arguments displays the main dom.
|
|
85
98
|
|
|
86
|
-
|
|
99
|
+
example
|
|
87
100
|
|
|
88
|
-
|
|
101
|
+
$ aro dom
|
|
102
|
+
|
|
103
|
+
SUBCOMMANDS
|
|
104
|
+
init
|
|
105
|
+
generate the arodome
|
|
106
|
+
new
|
|
107
|
+
create a new arodome with the specified name.
|
|
108
|
+
|
|
109
|
+
example:
|
|
110
|
+
|
|
111
|
+
$ aro dom new <name>
|
|
89
112
|
|
|
90
|
-
replaces all drawn cards FIFO and puts them on the bottom of
|
|
91
|
-
the deck. this will preserve all card orientations.
|
|
92
|
-
|
|
93
|
-
reset
|
|
94
113
|
|
|
95
|
-
completely reset the deck. replace all drawn and reset order.
|
|
96
|
-
all orientations will be set to upright.
|
|
97
114
|
|
|
98
115
|
|
|
99
116
|
|
data/locale/en.yml
CHANGED
|
@@ -5,27 +5,59 @@ en:
|
|
|
5
5
|
# VERY IMPORTANT!
|
|
6
6
|
|
|
7
7
|
config:
|
|
8
|
-
|
|
8
|
+
aro_env:
|
|
9
|
+
O_description: "read-only env var for holding O."
|
|
10
|
+
S_description: "read-only env var for holding S."
|
|
11
|
+
OS_description: "read-only env var for holding OS."
|
|
12
|
+
E_description: "read-only env var for holding E."
|
|
13
|
+
N_description: "read-only env var for holding N"
|
|
14
|
+
PS1_description: "read-only env var for holding default PS1."
|
|
15
|
+
NAME_FILE_description: "read-only env var for name file."
|
|
16
|
+
I2097I_description: "read-only env var for i2097i."
|
|
17
|
+
YES_description: "read-only env var for 'aroyes'."
|
|
18
|
+
ALL_description: "read-only env var for 'all'."
|
|
9
19
|
def_type: "CLI::Config::DEF_TYPES"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
20
|
+
dimension:
|
|
21
|
+
description: "selected dimension of aro space."
|
|
22
|
+
dev_tarot_description: "reads from /dev/tarot device if available."
|
|
23
|
+
ruby_facot_description: "generated ruby_facot (facade randomness)."
|
|
24
|
+
format:
|
|
25
|
+
description: "aro output format."
|
|
26
|
+
text_description: "show aro responses in text format (default)"
|
|
27
|
+
json_description: "show aro responses in json format."
|
|
28
|
+
|
|
29
|
+
height_description: "display height. valid range: (${min}-${max})"
|
|
30
|
+
width_description: "display width. valid range: (${min}-${max})"
|
|
31
|
+
|
|
32
|
+
env:
|
|
33
|
+
description: "aro run environment."
|
|
34
|
+
development_description: "basic development logs and features."
|
|
35
|
+
production_description: "game logging only."
|
|
36
|
+
test_description: "logging and features tailored for tests."
|
|
37
|
+
|
|
38
|
+
generate: "generating default config file at %{name}."
|
|
39
|
+
source: "installing ivars from %{name}..."
|
|
40
|
+
|
|
16
41
|
maximum: "max"
|
|
17
42
|
minimum: "min"
|
|
18
43
|
possible_values: "possible values"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
44
|
+
|
|
45
|
+
type:
|
|
46
|
+
bool_description: "true or false."
|
|
47
|
+
int_description: "a primitive decimal-less numeric."
|
|
48
|
+
string_description: "a blank-space-terminated string of characters."
|
|
49
|
+
values_description: "an enumerated type."
|
|
50
|
+
|
|
23
51
|
z_description: "sleep time between attempts to read /dev/tarot. valid range (%{min}-%{max})"
|
|
24
52
|
z_max_description: "max number of z long sleeps before giving up. valid range (%{min}-%{max})"
|
|
25
53
|
errors:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
54
|
+
# , cmd: Aro::Mancy::I2097I))
|
|
55
|
+
header: "$%{cmd}: !error."
|
|
56
|
+
invalid_usage: "$%{cmd}: !says you're not supposed to be here."
|
|
57
|
+
missing_args: "$%{cmd}: !says missing required argument(s)."
|
|
58
|
+
missing_deck: "$%{cmd}: !no deck selected. use 'aro deck' to select one or 'aro deck new <name>' to create one."
|
|
59
|
+
not_in_aro: "$%{cmd}: !you are not in aro space. that command will not work here."
|
|
60
|
+
not_initialized: "$%{cmd}: you need to initialize aro. run 'aro init' to do so"
|
|
29
61
|
warnings:
|
|
30
62
|
invalid_order: "the order specified for displaying logs in invalid. using default (desc)."
|
|
31
63
|
messages:
|
|
@@ -55,7 +87,7 @@ en:
|
|
|
55
87
|
|
|
56
88
|
use the following command to create one:
|
|
57
89
|
|
|
58
|
-
$ aro deck
|
|
90
|
+
$ aro deck new <deck_name>
|
|
59
91
|
|
|
60
92
|
see aro --help for usage.
|
|
61
93
|
showing: "showing %{name} [count:%{count}, order:%{order}]..."
|