Skip to content

Commit

Permalink
chore: remove test files and complete renaming to put
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Sep 24, 2020
1 parent e5fc02f commit 8a8910b
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 24 deletions.
6 changes: 3 additions & 3 deletions cmd/identities/import.go
Expand Up @@ -19,9 +19,9 @@ import (

// putCmd represents the import command
var putCmd = &cobra.Command{
Use: "import <file.json [file-2.json [file-3.json] ...]>",
Short: "Import identities from files or STD_IN",
Long: "Import identities from files or STD_IN. Files are expected to each contain a single identity. The validity of files can be tested beforehand using `... identities validate`.",
Use: "put <file.json [file-2.json [file-3.json] ...]>",
Short: "Put identities from files or STD_IN",
Long: "Put (as in http PUT) identities from files or STD_IN. Files are expected to each contain a single identity. The validity of files can be tested beforehand using `... identities validate`.",
Run: importIdentities,
}

Expand Down
@@ -1,30 +1,30 @@
---
id: kratos-identities-import
title: kratos identities import
description: kratos identities import Import identities from files or STD_IN
id: kratos-identities-put
title: kratos identities put
description: kratos identities put Put identities from files or STD_IN
---

<!--
This file is auto-generated.
To improve this file please make your change against the appropriate "./cmd/*.go" file.
-->
## kratos identities import
## kratos identities put

Import identities from files or STD_IN
Put identities from files or STD_IN

### Synopsis

Import identities from files or STD_IN. Files are expected to each contain a single identity. The validity of files can be tested beforehand using `... identities validate`.
Put (as in http PUT) identities from files or STD_IN. Files are expected to each contain a single identity. The validity of files can be tested beforehand using `... identities validate`.

```
kratos identities import <file.json [file-2.json [file-3.json] ...]> [flags]
kratos identities put <file.json [file-2.json [file-3.json] ...]> [flags]
```

### Options

```
-h, --help help for import
-h, --help help for put
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/cli/kratos-identities.md
Expand Up @@ -31,8 +31,8 @@ Tools to interact with remote identities
* [kratos](kratos) -
* [kratos identities delete](kratos-identities-delete) - Delete identities by ID
* [kratos identities get](kratos-identities-get) - Get one or more identities by ID
* [kratos identities import](kratos-identities-import) - Import identities from files or STD_IN
* [kratos identities list](kratos-identities-list) - List identities
* [kratos identities patch](kratos-identities-patch) - Patch identities by ID (not yet implemented)
* [kratos identities put](kratos-identities-put) - Put identities from files or STD_IN
* [kratos identities validate](kratos-identities-validate) - Validate local identity files

18 changes: 18 additions & 0 deletions docs/sidebar.json
Expand Up @@ -67,6 +67,24 @@
"cli/kratos-remote-status",
"cli/kratos-remote-version"
]
},
{
"items": [
"cli/kratos",
"cli/kratos-identities",
"cli/kratos-identities-delete",
"cli/kratos-identities-get",
"cli/kratos-identities-list",
"cli/kratos-identities-patch",
"cli/kratos-identities-put",
"cli/kratos-identities-validate",
"cli/kratos-jsonnet",
"cli/kratos-jsonnet-format",
"cli/kratos-jsonnet-lint",
"cli/kratos-remote",
"cli/kratos-remote-status",
"cli/kratos-remote-version"
]
}
],
"Debug & Help": ["debug/csrf"],
Expand Down
6 changes: 0 additions & 6 deletions test_id_1.json

This file was deleted.

6 changes: 0 additions & 6 deletions test_id_2.json

This file was deleted.

0 comments on commit 8a8910b

Please sign in to comment.