-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hab] Fix
pkg hash
thread panic & re-format CLI parsing code.
This change fixes a mismatch argument value in the `hab pkg hash` subcommand (`TARGET` vs. `SOURCE`). Aditionally, the subcommand ordering the `cli.rs` and `main.rs` were re-sorted in order to make the fake fuzzy matching code easier to manage and to facilitate side-by-side viewing of the 2 source files. Finally, the auth token parsing/lookup logic was refactored into a function, similar to the origin parsing/lookup logic. This refactoring adds an `auth_token` configuration value that can be set in a user's `etc/cli.toml` configuration file. A later change may add an additional question to the `hab cli setup` in order to populate this automatically. Signed-off-by: Fletcher Nichol <[email protected]> Pull request: #743 Approved by: fnichol
- Loading branch information
1 parent
cada8bf
commit 4e7d867
Showing
3 changed files
with
148 additions
and
150 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.