mdless 1.0.19 → 1.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/lib/mdless/converter.rb +6 -1
- data/lib/mdless/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 388ed46c03bdf676e441d063ac9efd9e1491c87d40048dc5346014d9aa1cf7a5
|
4
|
+
data.tar.gz: 06c1958a97494c2b77b4f22c704c096ec06499e04ffb2fddae1c28c8311d3920
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb1035bbd071a64f84386f4c3ce6ce9b17219ba9408c705a80abb931ffb9e4255e40275414f6b9a409d13aa071871c4f6b687ce1c7d56ba8e7a601fec9b92dd7
|
7
|
+
data.tar.gz: c343ec9cb5715d938736bc343858669175d1c3e1c4685534a83ec1c9fdad869d59cb45da0d2b81aba7980f0d18c39a20c0e69c89f44d31fc041d1e1b4246ecd7
|
data/README.md
CHANGED
@@ -27,6 +27,14 @@ I often use iTerm2 in visor mode, so `qlmanage -p` is annoying. I still wanted a
|
|
27
27
|
|
28
28
|
gem install mdless
|
29
29
|
|
30
|
+
### Dependencies
|
31
|
+
|
32
|
+
Some OSs are missing `tput`, which is necessary for mdless.
|
33
|
+
|
34
|
+
apt update
|
35
|
+
apt install ruby ncurses-utils
|
36
|
+
gem install mdless
|
37
|
+
|
30
38
|
## Usage
|
31
39
|
|
32
40
|
`mdless [options] path` or `cat [path] | mdless`
|
data/lib/mdless/converter.rb
CHANGED
@@ -105,7 +105,12 @@ module CLIMarkdown
|
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
108
|
-
|
108
|
+
begin
|
109
|
+
optparse.parse!
|
110
|
+
rescue OptionParser::ParseError => pe
|
111
|
+
$stderr.puts "error: #{pe.message}"
|
112
|
+
exit 1
|
113
|
+
end
|
109
114
|
|
110
115
|
@theme = load_theme(@options[:theme])
|
111
116
|
@cols = @options[:width]
|
data/lib/mdless/version.rb
CHANGED