Commit graph

23 commits

Author SHA1 Message Date
Egor Tensin
f3ef493ddf In plaintext mode, end with a newline
A curl call like

    curl -X PUT --data-binary @data.txt https://host/

outputs the paste URL without a newline a-la

    https://host/somepastenamewhich can mess up the terminal prompt. I

don't really see the downside of adding a newline. The workflow of

    url="$( curl -X PUT --data-binary @data.txt https://host/ )"
    curl "$url"

still works, since the shell strips the newline in command
substitutions.
2023-12-24 15:14:46 +00:00
Jordan Doyle
47552a638a
Update dependencies 2023-11-27 20:14:54 +00:00
Jordan Doyle
7c0bb9f220
Fix build 2023-11-27 19:48:45 +00:00
Jordan Doyle
e1639c032a
Add bat for its extended syntax sets 2022-03-14 22:45:27 +00:00
Jordan Doyle
e8c3d1a5fc
Bump dependencies 2022-03-14 22:45:27 +00:00
jordan@doyle.la
ccef0d9370
Move to actix-web 2020-04-13 11:47:26 +01:00
jordan@doyle.la
296cd50b7b
Move to async rocket 2020-04-13 11:47:25 +01:00
j_dickert
be88df22f7 Add linenumbering
Fix rocket dependencies
2020-04-05 14:48:42 +01:00
Jordan Johnson-Doyle
5b7868080f
Prevent cloning paste on show where not necessary 2019-02-21 16:41:39 +00:00
Jordan Johnson-Doyle
c2219e15f4
Avoid cloning generated id when submitting paste 2019-02-21 11:51:36 +00:00
Jordan Johnson-Doyle
e466683062
Unnecessary fully qualified struct reference 2019-02-16 19:00:54 +00:00
Jordan Johnson-Doyle
c3b886c196
Remove dependency on ring 2019-02-16 18:55:37 +00:00
Jordan Johnson-Doyle
f675f75b3b
Rename render -> show_paste 2019-02-16 11:51:14 +00:00
Jordan Johnson-Doyle
09e411739a
Run cargo fmt 2019-02-15 22:01:22 +00:00
Jordan Johnson-Doyle
b32010f905
Better error handling, remove all unwraps 2019-02-15 21:53:13 +00:00
Jordan Johnson-Doyle
e689ff7714
Separate id generation and persisting 2019-02-15 21:01:37 +00:00
Jordan Johnson-Doyle
707b5b16e7
Use dereferencing for request parameters 2019-02-13 21:52:17 +00:00
Jordan Johnson-Doyle
4fde268117
Add more comments 2019-02-12 01:23:06 +00:00
Jordan Johnson-Doyle
b876bb9c84
Return correct URL from the API, not one pointing to localhost 2019-02-12 01:08:38 +00:00
Jordan Johnson-Doyle
ae33163f9a
Return plaintext to CLI requests 2019-02-12 00:54:41 +00:00
Jordan Johnson-Doyle
7b9062aa21
Clean up code a bit 2019-02-11 10:47:12 +00:00
Jordan Johnson-Doyle
9d4b3ecafc
Move business logic out of main, use askama and bound the ENTRIES 2019-02-11 10:37:53 +00:00
Jordan Johnson-Doyle
2aeb2d5e19
Initial commit 2019-02-10 21:35:04 +00:00