From af866cb1cc47f7ec86bb1c1e9b79a49e47be8019 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 23 Feb 2024 20:22:58 +0000 Subject: [PATCH] nopaste: Add documentation for the CLI interface Signed-off-by: Michael Tremer --- src/templates/nopaste/create.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/templates/nopaste/create.html b/src/templates/nopaste/create.html index 48d59ba4..85a6e8e3 100644 --- a/src/templates/nopaste/create.html +++ b/src/templates/nopaste/create.html @@ -62,4 +62,30 @@ + +
+
+
+

{{ _("Console Interface") }}

+ +
+

+ {{ _("You can also upload files using the console like so:") }} +

+ +
+curl -u {{ current_user.uid }} -T- https://{{ request.host }} < file.txt
+					
+ +

+ {{ _("Or you can stream data into it like so:") }} +

+ +
+some command | curl -u {{ current_user.uid }} -T- https://{{ request.host }}
+					
+
+
+
+
{% end block %} -- 2.47.2