DictFlutterCommand 0.0.1
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 +7 -0
- data/DictFlutterCommand.rdoc +5 -0
- data/README.rdoc +6 -0
- data/bin/DictFlutterCommand +136 -0
- metadata +109 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3304cee62a44d35eedd6f59ab08a0dc61e5699e17b609a77b40bc1d503b5b01a
|
4
|
+
data.tar.gz: b7e7768ea5684ef6692a0fa6782faeb74dbabcafa78de70b31f2f53a7b249e16
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bcfc465a9047e7179605fc801c42d17fb436a97d1aaedd776c40824f27ddfc8fc7cf2daadaf84b12e615877cb16d8779b9d95b229fbbf0adeae5aaf30a4910e5
|
7
|
+
data.tar.gz: b0ae2fb248577b8dee687b3a1a33b6e0dfe7e3fe19a331c2e31bf8d146d836878c87af27bb80936a8fc75b1865e404f8e677d04e7bdd624d44e3380436a7d94e
|
data/README.rdoc
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'gli'
|
3
|
+
begin # XXX: Remove this begin/rescue before distributing your app
|
4
|
+
require 'DictFlutterCommand'
|
5
|
+
rescue LoadError
|
6
|
+
STDERR.puts "In development, you need to use `bundle exec bin/DictFlutterCommand` to run your app"
|
7
|
+
STDERR.puts "At install-time, RubyGems will make sure lib, etc. are in the load path"
|
8
|
+
STDERR.puts "Feel free to remove this message from bin/DictFlutterCommand now"
|
9
|
+
exit 64
|
10
|
+
end
|
11
|
+
|
12
|
+
class App
|
13
|
+
extend GLI::App
|
14
|
+
|
15
|
+
program_desc 'Describe your application here'
|
16
|
+
|
17
|
+
version DictFlutterCommand::VERSION
|
18
|
+
|
19
|
+
subcommand_option_handling :normal
|
20
|
+
arguments :strict
|
21
|
+
|
22
|
+
desc 'Describe some switch here'
|
23
|
+
switch [:s,:switch]
|
24
|
+
|
25
|
+
desc 'Describe some flag here'
|
26
|
+
default_value 'the default'
|
27
|
+
arg_name 'The name of the argument'
|
28
|
+
flag [:f,:flagname]
|
29
|
+
|
30
|
+
desc 'Describe list here'
|
31
|
+
arg_name 'Describe arguments to list here'
|
32
|
+
command :list do |c|
|
33
|
+
c.desc 'Describe a switch to list'
|
34
|
+
c.switch :s
|
35
|
+
|
36
|
+
c.desc 'Describe a flag to list'
|
37
|
+
c.default_value 'default'
|
38
|
+
c.flag :f
|
39
|
+
c.action do |global_options,options,args|
|
40
|
+
|
41
|
+
# Your command logic here
|
42
|
+
|
43
|
+
# If you have any errors, just raise them
|
44
|
+
# raise "that command made no sense"
|
45
|
+
|
46
|
+
puts "list command ran"
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
desc '下载词典flutter工程'
|
51
|
+
arg_name 'Describe arguments to complete here'
|
52
|
+
command :clone do |c|
|
53
|
+
c.action do |global_options,options,args|
|
54
|
+
DictFlutterCommand.clone
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
desc '配置flutter环境'
|
59
|
+
arg_name 'Describe arguments to add here'
|
60
|
+
command :init_flutter do |c|
|
61
|
+
c.action do |global_options,options,args|
|
62
|
+
DictFlutterCommand.init_flutter
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
desc 'Describe add here'
|
67
|
+
arg_name 'Describe arguments to add here'
|
68
|
+
command :run_ios do |c|
|
69
|
+
c.action do |global_options,options,args|
|
70
|
+
DictFlutterCommand.run_ios
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
desc 'Describe add here'
|
75
|
+
arg_name 'Describe arguments to add here'
|
76
|
+
command :run_android do |c|
|
77
|
+
c.action do |global_options,options,args|
|
78
|
+
DictFlutterCommand.run_android
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
desc 'Describe add here'
|
83
|
+
arg_name 'Describe arguments to add here'
|
84
|
+
command :attach do |c|
|
85
|
+
c.action do |global_options,options,args|
|
86
|
+
DictFlutterCommand.attach
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
desc 'Describe add here'
|
91
|
+
arg_name 'Describe arguments to add here'
|
92
|
+
command :create_package do |c|
|
93
|
+
c.action do |global_options,options,args|
|
94
|
+
DictFlutterCommand.create_package(args[0])
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
desc 'Describe add here'
|
99
|
+
arg_name 'Describe arguments to add here'
|
100
|
+
command :pub_get do |c|
|
101
|
+
c.action do |global_options,options,args|
|
102
|
+
DictFlutterCommand.pub_get
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
desc 'Describe add here'
|
107
|
+
arg_name 'Describe arguments to add here'
|
108
|
+
command :flutter_clean do |c|
|
109
|
+
c.action do |global_options,options,args|
|
110
|
+
DictFlutterCommand.flutter_clean
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
pre do |global,command,options,args|
|
115
|
+
# Pre logic here
|
116
|
+
# Return true to proceed; false to abort and not call the
|
117
|
+
# chosen command
|
118
|
+
# Use skips_pre before a command to skip this block
|
119
|
+
# on that command only
|
120
|
+
true
|
121
|
+
end
|
122
|
+
|
123
|
+
post do |global,command,options,args|
|
124
|
+
# Post logic here
|
125
|
+
# Use skips_post before a command to skip this
|
126
|
+
# block on that command only
|
127
|
+
end
|
128
|
+
|
129
|
+
on_error do |exception|
|
130
|
+
# Error logic here
|
131
|
+
# return false to skip default error handling
|
132
|
+
true
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
exit App.run(ARGV)
|
metadata
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: DictFlutterCommand
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- chedechao
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-12-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rdoc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: aruba
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: gli
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.19.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.19.0
|
69
|
+
description:
|
70
|
+
email: chedechao333@163.com
|
71
|
+
executables:
|
72
|
+
- DictFlutterCommand
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files:
|
75
|
+
- README.rdoc
|
76
|
+
- DictFlutterCommand.rdoc
|
77
|
+
files:
|
78
|
+
- DictFlutterCommand.rdoc
|
79
|
+
- README.rdoc
|
80
|
+
- bin/DictFlutterCommand
|
81
|
+
homepage: https://github.com/YoudaoMobile/DictFlutterCommand.git
|
82
|
+
licenses: []
|
83
|
+
metadata: {}
|
84
|
+
post_install_message:
|
85
|
+
rdoc_options:
|
86
|
+
- "--title"
|
87
|
+
- DictFlutterCommand
|
88
|
+
- "--main"
|
89
|
+
- README.rdoc
|
90
|
+
- "-ri"
|
91
|
+
require_paths:
|
92
|
+
- lib
|
93
|
+
- lib
|
94
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
requirements: []
|
105
|
+
rubygems_version: 3.0.6
|
106
|
+
signing_key:
|
107
|
+
specification_version: 4
|
108
|
+
summary: A description of your project
|
109
|
+
test_files: []
|