blob: 3eda93684f86806b3c4e8a96cecf83d00439ade2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
┏━━━━━━━━━━━━━━━━┓
┃ pastes 1.1.0 ┃
┗━━━━━━━━━━━━━━━━┛
Easily access pastes.dev from the command line
INSTALLATION
------------
If you use an arch-based system, you can install pastes from the AUR.
For other operating systems:
* git clone https://codeberg.org/maxbossing/pastes.git
* cd pastes
* sudo mv pastes /usr/bin/
USAGE
-----
pastes [FLAGS] [KEY]
If nothing is supplied, am $EDITOR session will be opened, the written contents are submitted to pastes.dev and and the URL will be shown.
If the written content is empty, nothing will be submitted
If KEY is supplied, the paste under the key is fetched and opened in $EDITOR.
If "-" is supplied, STDIN will be submitted to pastes.dev, and the URL will be shown.
===FLAGS===
-h --help display help and exit
-e --editor [EDITOR] manually set your editor
-f --file [FILE] specify a file to be pasted
-l --langauge [language] specify the language of the contents
-v --version display version and exit
-s --save save the paste to the path defined in -f instead
CHANGELOG
---------
=== 1.1.0 ===
* pass flag -e/--editor to specify the editor used
* pass flag -f/--file followed by a path to paste a file
* pass flag -l/--language followed by a language, to set the pastes.dev language. defaults to plain if none or a non-existing is supplied
* pass flag -v/--version to display the version
* fix some bugs with whitespace preservation
TODO
----
- [✗] Support https://pastes.dev/<key> links
LICENSE
-------
This project is licensed under GPL v2-only
|