tomo 1.13.0 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tomo/cli.rb +8 -2
- data/lib/tomo/colors.rb +1 -1
- data/lib/tomo/commands/tasks.rb +1 -1
- data/lib/tomo/plugin/rails/helpers.rb +6 -0
- data/lib/tomo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2da243b8f639993407cdb09d1bd13a5fadfa783e05b341432769149e4121a9d4
|
4
|
+
data.tar.gz: c194f68b4700a9b1ed3883e20c75ea36c5353a2a19b3db92644af1fdbbba7860
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c547b318e37b40b47737a097a15b7bbacda5bfcb446c285f91045a87f234ab8a7a3033cf1433cb8a99ce564a4463b3445be298d721dd6c8734c1e2cd8a26c97
|
7
|
+
data.tar.gz: 7342081977edf2ae5f98fe9f0b1cd39b9451a5a4ce870f2f713541041427088c830ae1ed3d975dab1eeb688362540369b1d550958b50ab91a7d9f2b4a62e776f
|
data/lib/tomo/cli.rb
CHANGED
@@ -36,6 +36,10 @@ module Tomo
|
|
36
36
|
"completion-script" => Tomo::Commands::CompletionScript
|
37
37
|
}.freeze
|
38
38
|
|
39
|
+
COMMAND_ALIASES = {
|
40
|
+
"-T" => Tomo::Commands::Tasks
|
41
|
+
}.freeze
|
42
|
+
|
39
43
|
def call(argv)
|
40
44
|
prepare_completions(argv)
|
41
45
|
command, command_name = lookup_command(argv)
|
@@ -56,12 +60,14 @@ module Tomo
|
|
56
60
|
end
|
57
61
|
|
58
62
|
def lookup_command(argv)
|
63
|
+
commands = COMMANDS.merge(COMMAND_ALIASES)
|
64
|
+
|
59
65
|
command_name = argv.first unless Completions.active? && argv.length == 1
|
60
|
-
command_name = Abbrev.abbrev(
|
66
|
+
command_name = Abbrev.abbrev(commands.keys)[command_name]
|
61
67
|
argv.shift if command_name
|
62
68
|
|
63
69
|
command_name = "run" if command_name.nil? && task_format?(argv.first)
|
64
|
-
command =
|
70
|
+
command = commands[command_name] || Tomo::Commands::Default
|
65
71
|
[command, command_name]
|
66
72
|
end
|
67
73
|
|
data/lib/tomo/colors.rb
CHANGED
data/lib/tomo/commands/tasks.rb
CHANGED
data/lib/tomo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tomo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brictson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Tomo is a feature-rich deployment tool that contains everything you need
|
14
14
|
to deploy a basic Rails app out of the box. It has an opinionated, production-tested
|