bunchcli 1.1.0 → 1.1.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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +8 -3
- data/bin/bunch +11 -1
- data/lib/bunch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f5a5b54ca9072d61c0e990f9f87b69168a4aec155f49f77a72df0900c69d6ae8
|
|
4
|
+
data.tar.gz: 6ed75949425a9d4e4ffbf4b4919978be42943955a1f844933a93ffc124e38af6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49ef4d2054f5171c1ceecad6371bee24085d26c499af0c4c99439edea38490ce2df00e2518b72f22042bf092af0835b95ac6499c103b8e78537a957d50561e98
|
|
7
|
+
data.tar.gz: 5a999f1fce45730a160c34b2b4dc61dc9723830cf619e5b6440203eb465151b39cec16665938381e5d2804b9e99686932974d7fd63c64403df203cf2a61cea8c
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -10,14 +10,19 @@ A CLI for [Bunch.app](https://brettterpstra.com/projects/bunch).
|
|
|
10
10
|
|
|
11
11
|
$ bunch -h
|
|
12
12
|
CLI for Bunch.app
|
|
13
|
-
-h, --help Display this screen
|
|
14
|
-
-f, --force-refresh Force refresh cached preferences
|
|
15
13
|
-l, --list List available Bunches
|
|
14
|
+
-s, --show BUNCH Show contents of Bunch
|
|
16
15
|
-o, --open Open Bunch ignoring "Toggle Bunches" preference
|
|
17
16
|
-c, --close Close Bunch ignoring "Toggle Bunches" preference
|
|
18
17
|
-t, --toggle Toggle Bunch ignoring "Toggle Bunches" preference
|
|
19
|
-
|
|
18
|
+
--snippet Load as snippet
|
|
19
|
+
--fragment=FRAGMENT Run a specific section
|
|
20
|
+
--vars=VARS Variables to pass to a snippet, comma-separated
|
|
21
|
+
-u, --url Output URL instead of opening
|
|
22
|
+
-i, --interactive Interactively generate a Bunch url
|
|
20
23
|
--show-config Display configuration values
|
|
24
|
+
-f, --force-refresh Force refresh cached preferences
|
|
25
|
+
-h, --help Display this screen
|
|
21
26
|
|
|
22
27
|
Usage: `bunch [options] BUNCH_NAME|PATH_TO_FILE`
|
|
23
28
|
|
data/bin/bunch
CHANGED
|
@@ -6,12 +6,17 @@ require 'bunch'
|
|
|
6
6
|
def help
|
|
7
7
|
puts "\nUsage: #{File.basename(__FILE__)} [options] BUNCH_NAME|PATH_TO_FILE"
|
|
8
8
|
puts "\nBunch names are case insensitive and will execute first match"
|
|
9
|
+
puts "Use 'bunch -h' to display options"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def version
|
|
13
|
+
puts "Bunch CLI v#{BunchCLI::VERSION}"
|
|
9
14
|
end
|
|
10
15
|
|
|
11
16
|
bunch = Bunch.new
|
|
12
17
|
|
|
13
18
|
optparse = OptionParser.new do |opts|
|
|
14
|
-
opts.banner =
|
|
19
|
+
opts.banner = "CLI for Bunch.app v#{BunchCLI::VERSION}"
|
|
15
20
|
|
|
16
21
|
opts.on('-l', '--list', 'List available Bunches') do |_opt|
|
|
17
22
|
bunch.list_bunches
|
|
@@ -70,6 +75,11 @@ optparse = OptionParser.new do |opts|
|
|
|
70
75
|
help
|
|
71
76
|
Process.exit 0
|
|
72
77
|
end
|
|
78
|
+
|
|
79
|
+
opts.on('-v', '--version', 'Display Bunch version') do |_opt|
|
|
80
|
+
version
|
|
81
|
+
Process.exit 0
|
|
82
|
+
end
|
|
73
83
|
end
|
|
74
84
|
|
|
75
85
|
optparse.parse!
|
data/lib/bunch/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bunchcli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brett Terpstra
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-01-
|
|
11
|
+
date: 2021-01-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|