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

新增ls和ls-remote子命令的--output选项 #119

Closed
voidint opened this issue Nov 20, 2023 · 0 comments
Closed

新增ls和ls-remote子命令的--output选项 #119

voidint opened this issue Nov 20, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@voidint
Copy link
Owner

voidint commented Nov 20, 2023

  • g lsg ls-remote子命令增加--output, -o选项,可选值包括text(默认)json
  • json输出示例如下:
[
    {
        "version": "1.21.4",
        "inUse": true,
        "installed": true,
        "packages": [
            {
                "filename": "go1.21.4.darwin-arm64.tar.gz",
                "url": "https://go.dev/dl/go1.21.4.darwin-arm64.tar.gz",
                "kind": "Archive",
                "os": "macOS",
                "arch": "ARM64",
                "size": "62MB",
                "algorithm": "SHA256",
                "checksum": "8b7caf2ac60bdff457dba7d4ff2a01def889592b834453431ae3caecf884f6a5"
            }
        ]
    }
]
@voidint voidint added the enhancement New feature or request label Nov 20, 2023
@voidint voidint self-assigned this Nov 20, 2023
@voidint voidint changed the title ls和ls-remote子命令增加--output参数 新增ls和ls-remote子命令的--output选项 Nov 21, 2023
@voidint voidint closed this as completed Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant