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

Adds support for info commands #2

Closed
wants to merge 3 commits into from

Conversation

jthacker
Copy link

@jthacker jthacker commented Jul 8, 2018

  • Adds build id display to build command
  • Adds support group to cli
  • Adds build to command to support group. This command lists the status
    of the current builds
  • Adds --output command for selecting output format

Examples:

> mason status --output=json build
[{"id": "<id>", "project": "<project>", "version": "<version>" ...]

> mason status build
Build #1
  Id: <id>
  Project: <project>
  Version: <version>
  Status: COMPLETED
  Result: SUCCESS
  Submitted: 2018-01-01 12:00:00
  Updated: 2018-02-01 12:00:00

@scorpiodawg
Copy link
Contributor

Thanks for taking the time to contribute @jthacker! Our team will review this PR and provide feedback when we're able to get to it.

jthacker added a commit to jthacker/mason-cli that referenced this pull request Jul 22, 2018
* Adds build id display to build command
* Adds info group to cli
* Adds build command to info group. This command lists the status
of the current builds
* Adds --output option to info group for selecting output format
* Adds artifact command to info group. Shows versions and upload times

Examples:
> mason info --output=json build
[{"id": "<id>", "project": "<project>", "version": "<version>" ...]

> mason info build
Build MasonAmerica#1
  Id: <id>
  Project: <project>
  Version: <version>
  Status: COMPLETED
  Result: SUCCESS
  Submitted: 2018-01-01 12:00:00
  Updated: 2018-02-01 12:00:00

> mason info --output=json artifact --type=apk
[{"name": "com.myapp", "type": "apk", "version": "1", ...]

> mason info artifact
Artifact MasonAmerica#1
  Name: my-app
  Type: os
  Version: 4
  Created: 2018-01-01 12:00:00

Artifact MasonAmerica#2
  Name: com.myapp
  Type: apk
  Version: 1
  Created: 2018-01-01 12:00:01
@jthacker jthacker changed the title Adds support for status commands Adds support for info commands Jul 22, 2018
@jthacker
Copy link
Author

Revised this to use "info" instead of "status" for the sub-command group. Now includes info for artifacts as well.

jthacker added a commit to jthacker/mason-cli that referenced this pull request Jul 22, 2018
* Adds build id display to build command
* Adds info group to cli
* Adds build command to info group. This command lists the status
of the current builds
* Adds --output option to info group for selecting output format
* Adds artifact command to info group. Shows versions and upload times

Examples:
> mason info --output=json build
[{"id": "<id>", "project": "<project>", "version": "<version>" ...]

> mason info build
Build MasonAmerica#1
  Id: <id>
  Project: <project>
  Version: <version>
  Status: COMPLETED
  Result: SUCCESS
  Submitted: 2018-01-01 12:00:00
  Updated: 2018-02-01 12:00:00

> mason info --output=json artifact --type=apk
[{"name": "com.myapp", "type": "apk", "version": "1", ...]

> mason info artifact
Artifact MasonAmerica#1
  Name: my-app
  Type: os
  Version: 4
  Created: 2018-01-01 12:00:00

Artifact MasonAmerica#2
  Name: com.myapp
  Type: apk
  Version: 1
  Created: 2018-01-01 12:00:01
* Adds build id display to build command
* Adds info group to cli
* Adds build command to info group. This command lists the status
of the current builds
* Adds --output option to info group for selecting output format
* Adds artifact command to info group. Shows versions and upload times

Examples:
> mason info --output=json build
[{"id": "<id>", "project": "<project>", "version": "<version>" ...]

> mason info build
Build MasonAmerica#1
  Id: <id>
  Project: <project>
  Version: <version>
  Status: COMPLETED
  Result: SUCCESS
  Submitted: 2018-01-01 12:00:00
  Updated: 2018-02-01 12:00:00

> mason info --output=json artifact --type=apk
[{"name": "com.myapp", "type": "apk", "version": "1", ...]

> mason info artifact
Artifact MasonAmerica#1
  Name: my-app
  Type: os
  Version: 4
  Created: 2018-01-01 12:00:00

Artifact MasonAmerica#2
  Name: com.myapp
  Type: apk
  Version: 1
  Created: 2018-01-01 12:00:01
jthacker added a commit to jthacker/mason-cli that referenced this pull request Aug 15, 2018
* Adds build id display to build command
* Adds info group to cli
* Adds build command to info group. This command lists the status
of the current builds
* Adds --output option to info group for selecting output format
* Adds artifact command to info group. Shows versions and upload times

Examples:
> mason info --output=json build
[{"id": "<id>", "project": "<project>", "version": "<version>" ...]

> mason info build
Build MasonAmerica#1
  Id: <id>
  Project: <project>
  Version: <version>
  Status: COMPLETED
  Result: SUCCESS
  Submitted: 2018-01-01 12:00:00
  Updated: 2018-02-01 12:00:00

> mason info --output=json artifact --type=apk
[{"name": "com.myapp", "type": "apk", "version": "1", ...]

> mason info artifact
Artifact MasonAmerica#1
  Name: my-app
  Type: os
  Version: 4
  Created: 2018-01-01 12:00:00

Artifact MasonAmerica#2
  Name: com.myapp
  Type: apk
  Version: 1
  Created: 2018-01-01 12:00:01
jthacker added a commit to jthacker/mason-cli that referenced this pull request Oct 30, 2018
* Adds build id display to build command
* Adds info group to cli
* Adds build command to info group. This command lists the status
of the current builds
* Adds --output option to info group for selecting output format
* Adds artifact command to info group. Shows versions and upload times

Examples:
> mason info --output=json build
[{"id": "<id>", "project": "<project>", "version": "<version>" ...]

> mason info build
Build MasonAmerica#1
  Id: <id>
  Project: <project>
  Version: <version>
  Status: COMPLETED
  Result: SUCCESS
  Submitted: 2018-01-01 12:00:00
  Updated: 2018-02-01 12:00:00

> mason info --output=json artifact --type=apk
[{"name": "com.myapp", "type": "apk", "version": "1", ...]

> mason info artifact
Artifact MasonAmerica#1
  Name: my-app
  Type: os
  Version: 4
  Created: 2018-01-01 12:00:00

Artifact MasonAmerica#2
  Name: com.myapp
  Type: apk
  Version: 1
  Created: 2018-01-01 12:00:01
@SUPERCILEX SUPERCILEX closed this Oct 25, 2019
@jthacker
Copy link
Author

@SUPERCILEX Curious why this was closed? Have you decided to go another direction? Are the commands out of scope?

@SUPERCILEX
Copy link
Contributor

Whoops, no this wasn't intentional. I killed the development branch since we weren't using it and I guess that closed your PR. Feel free to reopen against master. 👍

I also just noticed how long this PR has been neglected (sorry!), so I'm going to reopen discussion about it internally.

@SUPERCILEX
Copy link
Contributor

@jthacker We just released a new version of the CLI with tons of changes. If your use cases still aren't met, please file some bugs.

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.

3 participants