-
-
Notifications
You must be signed in to change notification settings - Fork 963
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,596 changed files
with
505 additions
and
3,539 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
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 |
---|---|---|
|
@@ -77,7 +77,7 @@ jobs: | |
fetch-depth: 2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.17 | ||
go-version: ^1.18 | ||
- run: go list -json > go.list | ||
- name: Run nancy | ||
uses: sonatype-nexus-community/[email protected] | ||
|
@@ -161,7 +161,7 @@ jobs: | |
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.17' | ||
go-version: '^1.18' | ||
- name: Install selfservice-ui-react-native | ||
uses: actions/checkout@v2 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -10,17 +10,27 @@ import ( | |
"github.com/ory/x/cmdx" | ||
) | ||
|
||
func NewDeleteCmd() *cobra.Command { | ||
func NewDeleteCmd(root *cobra.Command) *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "delete", | ||
Short: "Delete resources", | ||
} | ||
cmd.AddCommand(NewDeleteIdentityCmd(root)) | ||
cliclient.RegisterClientFlags(cmd.PersistentFlags()) | ||
cmdx.RegisterFormatFlags(cmd.PersistentFlags()) | ||
return cmd | ||
} | ||
|
||
func NewDeleteIdentityCmd(root *cobra.Command) *cobra.Command { | ||
return &cobra.Command{ | ||
Use: "delete <id-0 [id-1 ...]>", | ||
Short: "Delete identities by ID", | ||
Use: "identity id-0 [id-1] [id-2] [id-n]", | ||
Short: "Delete one or more identities by their ID(s)", | ||
Long: fmt.Sprintf(`This command deletes one or more identities by ID. To delete an identity by some selector, e.g. the recovery email address, use the list command in combination with jq. | ||
%s | ||
`, clihelpers.WarningJQIsComplicated), | ||
Example: `To delete the identity with the recovery email address "[email protected]", run: | ||
%s`, clihelpers.WarningJQIsComplicated), | ||
Example: fmt.Sprintf(`To delete the identity with the recovery email address "[email protected]", run: | ||
$ kratos identities delete $(kratos identities list --format json | jq -r 'map(select(.recovery_addresses[].value == "[email protected]")) | .[].id')`, | ||
%[1]s delete identity $(%[1]s list identities --format json | jq -r 'map(select(.recovery_addresses[].value == "[email protected]")) | .[].id')`, root.Use), | ||
Args: cobra.MinimumNArgs(1), | ||
RunE: func(cmd *cobra.Command, args []string) error { | ||
c := cliclient.NewClient(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
Oops, something went wrong.