luo 0.1.13 → 0.1.15

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: 1bff5f110ce7891072ff0a19bbfa92cad03d65cc08206397033c319547b621a4
4
- data.tar.gz: 0d5be0be3b78569887643d359c4d7d44dd53acbcc43aa193707985d799028a78
3
+ metadata.gz: 34a79757990fc0c14e8b3a61660fa0cb953e8901524d01b4dd96ebef27ab40dd
4
+ data.tar.gz: b654c3796f3137d341624f4dd49411d7601d46da21ae78026ecebc68111346eb
5
5
  SHA512:
6
- metadata.gz: a13b16e9bc0b45b1254ff9bb90df9b11f022b2a5045e607ed75cdd6e8a01eeb1a6b25ecba9f5c6dbc3f45b6dfa7fa91c9066037ac0dd81b83b9f556f4a3eb2d5
7
- data.tar.gz: e0516fa894b13bac62de90f84e4a0b241301b09e75bd64b173f954bafa76e7da104e37b2454457e3acd26f8524404739836d963bfb20a7fc463ba72e829672f9
6
+ metadata.gz: a114837b6da31262fcf352d1fd3f91006311f491dbb44d56cd995de34a2edcef050dff128a802271180303a20423399b8bcb84cb9513690dd4257a889c2056ca
7
+ data.tar.gz: c4de49a094baa1d36aa10a86099913728660d6572060bd206e5fbc5d458e56f1e84beb064508f52fc9130f1a27d2b975911c7bacb52352ffbb34e4c90e70cce6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- luo (0.1.13)
4
+ luo (0.1.15)
5
5
  dotenv (~> 2.8, >= 2.8.1)
6
6
  dry-cli (~> 1.0)
7
7
  dry-configurable (~> 1.0, >= 1.0.1)
data/README.zh.md CHANGED
@@ -9,7 +9,12 @@ gem install luo
9
9
  ```
10
10
 
11
11
  ###
12
- docker run --rm -it -v "$PWD:/workdir" luo_cli_cli -v
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Luo
4
- VERSION = "0.1.13"
4
+ VERSION = "0.1.15"
5
5
  end
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.13
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