⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@formorer
Copy link

@formorer formorer commented Jan 12, 2026

Sorry for breaking that tool. I implemented a new REST API and added that to grml-paste. I also let autoflake8 running, which caused some whitespace changes. This will fix #15

@mika
Copy link
Member

mika commented Jan 12, 2026

@formorer thanks a lot! Could you please rebase your PR on current master so #17 is included and doesn't break the build (sorry for that!)?

Commenting is apparently not possible if the PR originated on a fork.
Ignore the error then.
@mika
Copy link
Member

mika commented Jan 12, 2026

% ./grml-paste | ./grml-paste add 
Usage: grml-paste [options] ACTION <args>

actions:
         add    Add paste to the server: <1.line> <2.line> ...
         del    Delete paste from server: <id>
         get    Get paste from server: <id>
    getlangs    Get supported language highlighting types from server
        help    Print more verbose help about specific action: <action>

grml-paste: error: Please provide me with an action
Server Error: No code provided

Maybe we should clarify the actual token usage also in normal ./grml-paste output, and also where to get that one from? (I'd assume it's not obvious for everyone that this requires an Salsa account?)

BTW, I guess we should upload this towards Debian stable for inclusion with next trixie point-release also, WDYT, @formorer?

@formorer
Copy link
Author

I added some docs. Since grml-paste doesn't work anymore I would recommend updating it or ask for removal.

@crpb
Copy link

crpb commented Jan 17, 2026

fwiw, currently tinkering on some features.

  • return plain url (e.g. paste.d.n/plainh/XXXXX) - ./grml-paste -p[--plain] add
  • write ~/.paste_history (or however it could be called) with ID, Digest and if the TTL is returned this aswell.
    • this could also make a grml-paste history feature possible to list/access those easily with an automatic deletion of "outdated" entries ( again if there is a TTL in the return )

      because it's even hard to keep track in the irc-log :P.

    • only return /plain/|/plainh/ url as the digest will be written down.

more ideas? :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rewrite or drop as paste.debian.net's xml-rpc interface is gone?

3 participants