aptly icon indicating copy to clipboard operation
aptly copied to clipboard

FEATURE: aptly cmd line output in json format

Open oOHenry opened this issue 1 year ago • 3 comments

We are using aptly in many scripts for example to add packages via ci to our repo servers. It would help a lot if there was a general flag to enable json output for the aptly cmd output.

oOHenry avatar Jun 15 '23 15:06 oOHenry

Have you considered using aptly's API for you CI jobs? It should already deliver JSON responses for all implemented features.

The API documentation is funny though, as it does not really specify anything about responses to be expected, you'll have to go by the examples, which are hopefully still up-to-date.

r4co0n avatar Jun 21 '23 16:06 r4co0n

Yeah but we don't have the aptly api running, we just export the directory via an apache. Also the docs said: Note: HTTP REST API is not complete yet (mirroring support not implemented) and we are using a job to create sync and update mirrors.

oOHenry avatar Jun 22 '23 12:06 oOHenry

@oOHenry Mirrors are supported since a while now: https://www.aptly.info/doc/api/mirror/ We might need to update the docs.

randombenj avatar Jun 22 '23 12:06 randombenj