furion 1.0.7 → 1.0.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/furion +11 -12
  3. data/lib/furion.rb +11 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdfb9b653ed4ff51f1baa92fa4fcaed1a7d8967a6f23d34a21948347f889573f
4
- data.tar.gz: b04c173f6c862e85e2d53bf993b5820490f666abc66f3e627a9f81b4535de9f5
3
+ metadata.gz: a47d8db0af699016ad2e400e7642849b9a5e9d345dbf5f00703cc14c0854a3dd
4
+ data.tar.gz: b32bb979b3e7882037a488e8396f4da75360bce6a95104e4cd20e61c90e92c3b
5
5
  SHA512:
6
- metadata.gz: c2900e04ba2cf2a285cabd138ead11fe01b7120b85702962804f9f7bc90b862bb930595bc2bcded9044b539ad1f2c735917a0a787ce2e221afc43d5bd7c44667
7
- data.tar.gz: fe245a50339f5dc6c310029594de8432f18898d10a34ecd186fb5c3362b716497ea5c51599b9e817122bb9a7d65bf7c0fa2b0503a42238930504b50684318910
6
+ metadata.gz: 2a55a0a91610c9d653dbc9b27b61b0f07846c67a9a06227d1af871415b404c8c47bdcbc20c23d433261a7dc2c699862dca4c427f434d89e43304bf1332e2c3e9
7
+ data.tar.gz: 96577043919839d3bb62f44e145b999d80ff9f5629881c5b7ee0aa9dbb0e5454da02277b0e68d3eeff0c49357c2ebd78fda1b78fcaa58f6d001b1fcd049ce477
data/bin/furion CHANGED
@@ -3,26 +3,25 @@
3
3
  require 'furion'
4
4
  require 'optionparser'
5
5
  options = {}
6
- printers = Array.new
6
+
7
7
 
8
8
  OptionParser.new do |opts|
9
- opts.banner = "Usage: dfm [options] [path]\nDefaults: dfm -xd ." + File::SEPARATOR
10
- opts.on("-f", "--filters FILTERS", Array, "File extension filters") do |filters|
11
- options[:filters] = filters
12
- end
9
+
13
10
  opts.on("-h", "--help", "help on furion") do |dh|
14
11
  puts "Options and arguments:
15
12
  -v : print the version number
16
13
  -h : print the help message
17
- -init : run wrapper-pick work flow in existed project
18
- -create [name]: create an empty project and init wrapper
14
+ init : run wrapper-pick work flow in existed project
15
+ create [name]: create an empty project and init wrapper
19
16
  "
20
17
  end
21
18
  opts.on("-v", "--version", "Prints version") do |dh|
22
- puts "1.0.6"
23
- end
24
- opts.on("init", "run wrapper pick workflow") do |dh|
25
- Furion.makeConfig
19
+ puts "1.0.8"
26
20
  end
27
-
21
+
22
+
28
23
  end.parse!
24
+
25
+ if ARGV[0] == "init"
26
+ Furion.makeConfig
27
+ end
data/lib/furion.rb CHANGED
@@ -33,6 +33,17 @@ class Furion
33
33
  projName = FileEditor.getCuriOSProjName
34
34
  puts "Config finished, run "+projName+".xcworkspace to continue "
35
35
  end
36
+
37
+ def self.runCMD
38
+ cmd = ARGV[0]
39
+ if cmd == "init"
40
+ makeConfig
41
+ end
42
+
43
+ if cmd == "create"
44
+ puts "to be continue"
45
+ end
46
+ end
36
47
  end
37
48
 
38
49
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: furion
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - MTP Huya