imap-backup 9.3.0 → 9.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/imap/backup/cli.rb +15 -0
- data/lib/imap/backup/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: 0f01e9469da5b4990bdcc90f5e019b0cf5e9cf06203f29980503edabdec4abb8
|
4
|
+
data.tar.gz: 93501685a083a9b3edc8f1bb606decf7bcac965773063eb9e59863f3afa43113
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 494089b738a8ca9080c1057b4bdc5a8ebe8d2900e756fbd2c16445d856e3939da759bd8bc644585f8d6591055a79656b92a44b60cb0a522a87023d30f6b49ca9
|
7
|
+
data.tar.gz: fa3e100e307103808360797853953cfec677bbd6ee3b9b36330f2449ef065a5e128660154e6d3593a34652f6753a553bf4697e145c60a3e728645acb67477de3
|
data/lib/imap/backup/cli.rb
CHANGED
@@ -22,6 +22,21 @@ module Imap::Backup
|
|
22
22
|
|
23
23
|
default_task :backup
|
24
24
|
|
25
|
+
def self.start(*args)
|
26
|
+
# By default, commands like `imap-backup help foo bar`
|
27
|
+
# are handled by listing all `foo` methods, whereas the user
|
28
|
+
# probably wants the detailed help for the `bar` method.
|
29
|
+
# Move initial "help" argument to after any subcommand,
|
30
|
+
# so we get help for the requested subcommand method.
|
31
|
+
first_argument_is_help = ARGV[0] == "help"
|
32
|
+
second_argument_is_subcommand = subcommands.include?(ARGV[1])
|
33
|
+
if first_argument_is_help && second_argument_is_subcommand
|
34
|
+
help, subcommand = ARGV.shift(2)
|
35
|
+
ARGV.unshift(subcommand, help)
|
36
|
+
end
|
37
|
+
super
|
38
|
+
end
|
39
|
+
|
25
40
|
def self.exit_on_failure?
|
26
41
|
true
|
27
42
|
end
|
data/lib/imap/backup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imap-backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.3.
|
4
|
+
version: 9.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Yates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|