luo 0.1.14 → 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: c91c54c45567fd291412b61b01cc553364e9a979edc37f2497e77b6f53659a85
4
- data.tar.gz: 6981cc000220d2864c4bbec1c8c0a95c7613aa4a51e746760d70cea6d3b073ca
3
+ metadata.gz: 34a79757990fc0c14e8b3a61660fa0cb953e8901524d01b4dd96ebef27ab40dd
4
+ data.tar.gz: b654c3796f3137d341624f4dd49411d7601d46da21ae78026ecebc68111346eb
5
5
  SHA512:
6
- metadata.gz: 41f5f13d5f886ccd4ee531ea346e195f1fa40e9f763812fa417ee5eba860e645254b94002f331fa7075ebfc4e0cda24568027404de4ed8a64866f651227464d4
7
- data.tar.gz: 74e21e66f71de150cfd7de551d235367b43d22808b09e0e09a0d16a500a39335e873f7f82d847fcdac742dfc958b05dae12f1c2cd760f18d0dca6eb344da879c
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.14)
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
@@ -49,11 +49,21 @@ module Luo
49
49
  end
50
50
  end
51
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
+
52
61
  register "version", Version, aliases: %w[v -v --version]
53
62
  register "commit", Commit, aliases: ["c"]
54
63
  register "init", Init, aliases: ["i"]
55
64
  register "run", Run, aliases: ["r"]
56
65
  register "bundle", Bundle, aliases: ["b"]
66
+ register "exec", Exec, aliases: ["e"]
57
67
 
58
68
  end
59
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.14"
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.14
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