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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 010c20799d4e9e35409737ee3dfd5e3a755096ff212eb9a02787dfcee16dc5e2
4
- data.tar.gz: daccb516131e6816f4ea5cd153e14df691e3089600e77114e1755cf502efe131
3
+ metadata.gz: f5a5b54ca9072d61c0e990f9f87b69168a4aec155f49f77a72df0900c69d6ae8
4
+ data.tar.gz: 6ed75949425a9d4e4ffbf4b4919978be42943955a1f844933a93ffc124e38af6
5
5
  SHA512:
6
- metadata.gz: b9f94711eadea1d3cf6cd3ebef2244663cc793b1dc3bd121ac2bb1409431c24215d03b172db13d76966143529c99578bfce000bebbba89dbbf16410d1653ab93
7
- data.tar.gz: 2923722c6988c146be4eaa19b20b732413eb95fad52c890a0bd47165e50a61e576042d4934d376a6f5ed992723f5d843ee645b3eaa7eb10cdb677628f996ce99
6
+ metadata.gz: 49ef4d2054f5171c1ceecad6371bee24085d26c499af0c4c99439edea38490ce2df00e2518b72f22042bf092af0835b95ac6499c103b8e78537a957d50561e98
7
+ data.tar.gz: 5a999f1fce45730a160c34b2b4dc61dc9723830cf619e5b6440203eb465151b39cec16665938381e5d2804b9e99686932974d7fd63c64403df203cf2a61cea8c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bunchcli (1.0.0)
4
+ bunchcli (1.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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
- -s, --show BUNCH Show contents of Bunch
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 = 'CLI for Bunch.app'
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!
@@ -1,3 +1,3 @@
1
1
  module BunchCLI
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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-24 00:00:00.000000000 Z
11
+ date: 2021-01-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: