luo 0.1.13 → 0.1.15
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/Gemfile.lock +1 -1
- data/README.zh.md +6 -1
- data/lib/luo/cli.rb +19 -0
- data/lib/luo/version.rb +1 -1
- data/luo +11 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34a79757990fc0c14e8b3a61660fa0cb953e8901524d01b4dd96ebef27ab40dd
|
4
|
+
data.tar.gz: b654c3796f3137d341624f4dd49411d7601d46da21ae78026ecebc68111346eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a114837b6da31262fcf352d1fd3f91006311f491dbb44d56cd995de34a2edcef050dff128a802271180303a20423399b8bcb84cb9513690dd4257a889c2056ca
|
7
|
+
data.tar.gz: c4de49a094baa1d36aa10a86099913728660d6572060bd206e5fbc5d458e56f1e84beb064508f52fc9130f1a27d2b975911c7bacb52352ffbb34e4c90e70cce6
|
data/Gemfile.lock
CHANGED
data/README.zh.md
CHANGED
@@ -9,7 +9,12 @@ gem install luo
|
|
9
9
|
```
|
10
10
|
|
11
11
|
###
|
12
|
-
|
12
|
+
把下面这行代码添加到 ~/.zshrc 或者 ~/.bashrc 中
|
13
|
+
|
14
|
+
```
|
15
|
+
alias luo='docker run --rm -it -v "$PWD:/workdir" ghcr.io/mjason/luo:latest'
|
16
|
+
```
|
17
|
+
|
13
18
|
|
14
19
|
## 环境变量说明
|
15
20
|
```Bash
|
data/lib/luo/cli.rb
CHANGED
@@ -41,10 +41,29 @@ module Luo
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
+
class Bundle < Dry::CLI::Command
|
45
|
+
desc "Bundle with Luo"
|
46
|
+
|
47
|
+
def call(*)
|
48
|
+
exec "bundle install"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
class Exec < Dry::CLI::Command
|
53
|
+
desc "Exec with Luo"
|
54
|
+
argument :task, type: :string, required: true
|
55
|
+
|
56
|
+
def call(task: ,**)
|
57
|
+
exec task
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
44
61
|
register "version", Version, aliases: %w[v -v --version]
|
45
62
|
register "commit", Commit, aliases: ["c"]
|
46
63
|
register "init", Init, aliases: ["i"]
|
47
64
|
register "run", Run, aliases: ["r"]
|
65
|
+
register "bundle", Bundle, aliases: ["b"]
|
66
|
+
register "exec", Exec, aliases: ["e"]
|
48
67
|
|
49
68
|
end
|
50
69
|
|
data/lib/luo/version.rb
CHANGED
data/luo
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
if [ -z "$(ls -A $PWD/bundle_gems)" ]; then
|
4
|
+
docker run --rm -v "$PWD/bundle_gems:/usr/local/bundle_1" --entrypoint sh ghcr.io/mjason/luo:latest /bin/sh
|
5
|
+
fi
|
6
|
+
|
7
|
+
docker run --rm -it \
|
8
|
+
-v "$PWD:/workdir" \
|
9
|
+
-v "$PWD/bundle_gems:/usr/local/bundle/" \
|
10
|
+
ghcr.io/mjason/luo:latest \
|
11
|
+
"$@"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MJ
|
@@ -222,6 +222,7 @@ files:
|
|
222
222
|
- lib/luo/version.rb
|
223
223
|
- lib/luo/xinghuo.rb
|
224
224
|
- lib/luo/xinghuo_agent_runner.rb
|
225
|
+
- luo
|
225
226
|
- luo.gemspec
|
226
227
|
- sig/luo.rbs
|
227
228
|
- sig/luo/agent.rbs
|