Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: structured output with alr --format show #1851

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

mosteo
Copy link
Member

@mosteo mosteo commented Feb 16, 2025

Show accepts now --format:

$ alr --format show hello
{
  "authors": [
    "Alejandro R. Mosteo"
  ],
  "depends-on": [
    {
      "libhello": "^1.0"
    }
  ],
  "description": "'Hello, world!' demonstration project",
  "executables": [
    "hello"
  ],
  "licenses": "MIT",
  "maintainers": [
    "Alejandro R. Mosteo <alejandro@mosteo.com>"
  ],
  "maintainers-logins": [
    "mosteo"
  ],
  "name": "hello",
  "origin": {
    "commit": "5715870bf1637ac06c87a3db580d4efdfd5daeed",
    "url": "git+https://github.com/alire-project/hello.git"
  },
  "tags": [
    "hello",
    "demo"
  ],
  "version": "1.0.2",
  "website": "https://github.com/alire-project/hello"
}

Also did a general review of all the commands to forbid --format when not applicable.

User changes didn't mention --format when it was introduced, so added that too.

Fixes #1151
Fixes #1600

PR creation checklist
  • A test is included, if required by the changes.
  • doc/user-changes.md has been updated, if there are user-visible changes.

@mosteo mosteo force-pushed the feat/show-formatted branch from 75abfb8 to 0a8c9de Compare February 16, 2025 19:52
@mosteo mosteo changed the title feat: structured output with `alr --format show feat: structured output with alr --format show Feb 16, 2025
@mosteo mosteo force-pushed the feat/show-formatted branch from faab6b2 to 264abdd Compare February 18, 2025 23:38
@mosteo mosteo force-pushed the feat/show-formatted branch from 264abdd to 4b0f6d0 Compare February 20, 2025 16:28
@mosteo mosteo force-pushed the feat/show-formatted branch from 9f82795 to 4033db5 Compare February 20, 2025 19:48
@mosteo mosteo marked this pull request as ready for review February 21, 2025 16:36
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.

Structured output get gpr file from alire.toml via command line
1 participant