Funkwhale dev, CLI
I enjoy writing Command Line interfaces so much β€οΈ
I'm trying to give flexibility regarding output, while keeping sane defaults, and allowing advanced usage, such as piping.
In this demo, I demonstrate the flexibility I've implemented: you can output the API results in various formats (plain, markdown, RST, HTML, etc.), or retrieve the plain JSON returned by the API.
You can also select the fields you want to display.
Funkwhale dev, CLI
It's now possible to download one or more tracks via the CLI, in a given format, and to use basic templating for the filename.
Quick demonstration in the video below.
You can use this mechanism to quickly download all the tracks matching a given search or filter from your instance to your computer (e.g for offline use).
Or to stream a bunch of tracks directly to VLC.
The templating part for filename was rather funny to work on!
Funkwhale dev, CLI
@eliotberriot sooo cool! :) Source code is available to play with this tool or is still too early ?
Funkwhale dev, CLI
@eliotberriot ok I found the repo, sorry for the stupid question ^^ (https://dev.funkwhale.audio/funkwhale/cli)
Funkwhale dev, CLI
@eliotberriot It seem it lack a dependence on my system and I have an issue with the keyring.. I'm going to do some investigation on this issue and report this on the git tracker ;)
Ah and there is no documentation on README (or elsewhere) but it's a detail if it's didn't work for the moment but it's cool to have one. I speak about the .env for example. I think it's where all the configuration go but I didn't know for the moment, I didn't read the source code...
Funkwhale dev, CLI
@eliotberriot Issues created ! Now everything works perfectly ! Thanks for your work :)
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!
Funkwhale dev, CLI
@neodarz not stupid, I should have shared the link ;)
Let me know how it works for you!