]> git.ipfire.org Git - ipfire.org.git/commitdiff
nopaste: Add documentation for the CLI interface
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Feb 2024 20:22:58 +0000 (20:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Feb 2024 20:22:58 +0000 (20:22 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/nopaste/create.html

index 48d59ba45f1347f567fcb4e5e2f33463ee8ea140..85a6e8e315b35f6ae78228ccb8bf7a94d069c4c2 100644 (file)
                        </div>
                </div>
        </section>
+
+       <section class="section">
+               <div class="container">
+                       <div class="notification">
+                               <h4 class="title is-4">{{ _("Console Interface") }}</h4>
+
+                               <div class="content">
+                                       <p>
+                                               {{ _("You can also upload files using the console like so:") }}
+                                       </p>
+
+                                       <pre>
+curl -u {{ current_user.uid }} -T- https://{{ request.host }} < file.txt
+                                       </pre>
+
+                                       <p>
+                                               {{ _("Or you can stream data into it like so:") }}
+                                       </p>
+
+                                       <pre>
+some command | curl -u {{ current_user.uid }} -T- https://{{ request.host }}
+                                       </pre>
+                               </div>
+                       </div>
+               </div>
+       </section>
 {% end block %}