Added the fleet and member commands with positional targets and a delete confirmation - #5
Merged
Conversation
… shell via direnv
… the package manager elsewhere
…ch install channel owns its own updates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The fleet and member commands:
fleet create,fleet list,fleet rename,fleet transfer,fleet delete,member add,member list, andmember remove. Targets are positional throughout: fleet ids as arguments,no
--fleet,--device, or--yes, and--jsonis the only global flag.fleet delete <fleet_id>fetches the fleet's name and asksDelete "name" and release its devices? [y/N]on stdin. Only y or yesproceeds, a closed stdin aborts, and there is no bypass flag.
client.gogained the authenticated request builder; a missing or emptykey file gets the local not-logged-in hint without a round trip.
fleets.goholds the fleet fetch shared byfleet listand the deleteprompt.
claim <imei> <fleet_id> [name],devices [fleet_id], per-IMEIrename/release/start/stop/restart, andupload/download/tail/devtaking<imei|fleet_id>, with--log-fileontailanddev.Tests cover every command's wire shape against a fake server, the delete
confirmation with stdin swapped for a pipe (y, YES, n, bare enter, EOF),
path escaping of emails in the remove route, and argument validation.
Pairs with siliconwitchery/superstack-next#16; the version gate stays at
0.0.2 on both sides. The direnv dev-shell commit already on
devridesalong, and
devwas rebased ontomainto drop the pre-squash auth commitit still carried.