Skip to content

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

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

Merged
merged 12 commits into from
Feb 24, 2025

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
@mosteo mosteo merged commit a0b00df into alire-project:master Feb 24, 2025
32 checks passed
@mosteo mosteo deleted the feat/show-formatted branch February 24, 2025 14:06
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
2 participants