-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add saucectl configure list (#798)
* feat: Add saucectl configure list * fix unit test * Update internal/cmd/configure/list.go Co-authored-by: Alex Plischke <alex.plischke@saucelabs.com> * renaming --------- Co-authored-by: Alex Plischke <alex.plischke@saucelabs.com>
- Loading branch information
1 parent
cd16f0f
commit b23ddbc
Showing
5 changed files
with
45 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package configure | ||
|
||
import ( | ||
"github.com/saucelabs/saucectl/internal/credentials" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
func ListCommand() *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "list", | ||
Aliases: []string{ | ||
"ls", | ||
}, | ||
Short: "Shows the current credentials and their origin.", | ||
Run: func(cmd *cobra.Command, args []string) { | ||
creds := credentials.Get() | ||
printCreds(creds) | ||
}, | ||
} | ||
|
||
return cmd | ||
} |
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
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