Skip to content

Optionally read stdin for gh alias set#3490

Merged
vilmibm merged 2 commits intocli:trunkfrom
heaths:issue3487
Apr 26, 2021
Merged

Optionally read stdin for gh alias set#3490
vilmibm merged 2 commits intocli:trunkfrom
heaths:issue3487

Conversation

@heaths
Copy link
Contributor

@heaths heaths commented Apr 22, 2021

Resolves #3487

Copy link
Contributor

@vilmibm vilmibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you!

I would prefer that this trigger on -, though, as you originally suggested. While there's prior art in secret set I actually think secret set needs to change since we'd like it to prompt by default (and then have a flag for reading from STDIN).

@heaths
Copy link
Contributor Author

heaths commented Apr 23, 2021

I admit I also like how explicit - is.

@heaths
Copy link
Contributor Author

heaths commented Apr 23, 2021

While I'm at it, do you want me to change (or at least add - to) gh secret set for some consistency? For now to avoid backcompat breaks I can leave the optional last param. For now I'll just change what you requested, but down with "fixing" secret set as well if you want.

Resolves PR feedback.
@vilmibm
Copy link
Contributor

vilmibm commented Apr 26, 2021

@heaths thanks for the offer, but no worries. I've gone and tweaked secret set for better or worse.

Copy link
Contributor

@vilmibm vilmibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thank you~

@vilmibm vilmibm merged commit ac0fe6b into cli:trunk Apr 26, 2021
@heaths heaths deleted the issue3487 branch April 27, 2021 01:43
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.

Accept pipe input for gh alias set

2 participants