Skip to content

Commit

Permalink
Reformat scopes command documentation
Browse files Browse the repository at this point in the history
Reformat collections command documentation
  • Loading branch information
Westwooo committed Sep 17, 2024
1 parent 59486f6 commit 4ec3ecf
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 144 deletions.
146 changes: 2 additions & 144 deletions docs/commands.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,151 +5,9 @@ them with built-in other shell commands as well as executables from your environ

include::commands/buckets.adoc[]

=== Working with `scopes` and `collections`
include::commands/scopes.adoc[]

The `scopes` and `collections` commands can be used for managing scopes and collection respectively.

==== Scopes

```
> scopes -h
Fetches scopes through the HTTP API

Usage:
> scopes {flags}

Subcommands:
scopes create - Creates scopes through the HTTP API
scopes drop - Deletes scopes through the HTTP API

Flags:
-h, --help - Display the help message for this command
--bucket <String> - the name of the bucket
--clusters <String> - the clusters to query against
```

To list all scopes in the bucket you would use:

```
> scopes
โ•ญโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # โ”‚ scope โ”‚ cluster โ”‚
โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0 โ”‚ inventory โ”‚ dev.local โ”‚
โ”‚ 1 โ”‚ tenant_agent_00 โ”‚ dev.local โ”‚
โ”‚ 2 โ”‚ tenant_agent_01 โ”‚ dev.local โ”‚
โ”‚ 3 โ”‚ tenant_agent_02 โ”‚ dev.local โ”‚
โ”‚ 4 โ”‚ tenant_agent_03 โ”‚ dev.local โ”‚
โ”‚ 5 โ”‚ tenant_agent_04 โ”‚ dev.local โ”‚
โ”‚ 6 โ”‚ _default โ”‚ dev.local โ”‚
โ•ฐโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
```

You can also create and remove scopes:

```
> scopes create tenant_agent_05
> scopes
โ•ญโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # โ”‚ scope โ”‚ cluster โ”‚
โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0 โ”‚ tenant_agent_05 โ”‚ dev.local โ”‚
โ”‚ 1 โ”‚ inventory โ”‚ dev.local โ”‚
โ”‚ 2 โ”‚ tenant_agent_00 โ”‚ dev.local โ”‚
โ”‚ 3 โ”‚ tenant_agent_01 โ”‚ dev.local โ”‚
โ”‚ 4 โ”‚ tenant_agent_02 โ”‚ dev.local โ”‚
โ”‚ 5 โ”‚ tenant_agent_03 โ”‚ dev.local โ”‚
โ”‚ 6 โ”‚ tenant_agent_04 โ”‚ dev.local โ”‚
โ”‚ 7 โ”‚ _default โ”‚ dev.local โ”‚
โ•ฐโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
```

```
> scopes drop tenant_agent_05
> scopes
โ•ญโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # โ”‚ scope โ”‚ cluster โ”‚
โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0 โ”‚ inventory โ”‚ dev.local โ”‚
โ”‚ 1 โ”‚ tenant_agent_00 โ”‚ dev.local โ”‚
โ”‚ 2 โ”‚ tenant_agent_01 โ”‚ dev.local โ”‚
โ”‚ 3 โ”‚ tenant_agent_02 โ”‚ dev.local โ”‚
โ”‚ 4 โ”‚ tenant_agent_03 โ”‚ dev.local โ”‚
โ”‚ 5 โ”‚ tenant_agent_04 โ”‚ dev.local โ”‚
โ”‚ 6 โ”‚ _default โ”‚ dev.local โ”‚
โ•ฐโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
```

==== Collections

```
> collections -h
Fetches collections through the HTTP API

Usage:
> collections {flags}

Subcommands:
collections create - Creates collections through the HTTP API
collections drop - Deletes collections through the HTTP API

Flags:
-h, --help - Display the help message for this command
--bucket <String> - the name of the bucket
--scope <String> - the name of the scope
--clusters <String> - the clusters to query against
```

To list all collection in the bucket you would use:

```
> collections
โ•ญโ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # โ”‚ scope โ”‚ collection โ”‚ max_expiry โ”‚ cluster โ”‚
โ”œโ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0 โ”‚ inventory โ”‚ landmark โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 1 โ”‚ inventory โ”‚ hotel โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 2 โ”‚ inventory โ”‚ airport โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 3 โ”‚ inventory โ”‚ airline โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 4 โ”‚ inventory โ”‚ route โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 5 โ”‚ tenant_agent_00 โ”‚ bookings โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 6 โ”‚ tenant_agent_00 โ”‚ users โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 7 โ”‚ tenant_agent_01 โ”‚ users โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 8 โ”‚ tenant_agent_01 โ”‚ bookings โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 9 โ”‚ tenant_agent_02 โ”‚ users โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 10 โ”‚ tenant_agent_02 โ”‚ bookings โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 11 โ”‚ tenant_agent_03 โ”‚ users โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 12 โ”‚ tenant_agent_03 โ”‚ bookings โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 13 โ”‚ tenant_agent_04 โ”‚ users โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 14 โ”‚ tenant_agent_04 โ”‚ bookings โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 15 โ”‚ _default โ”‚ _default โ”‚ 0sec โ”‚ dev.local โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
```

You can also create and remove collections:

```
> collections create staff --scope tenant_agent_00
> collections --scope tenant_agent_00
โ•ญโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # โ”‚ scope โ”‚ collection โ”‚ max_expiry โ”‚ cluster โ”‚
โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0 โ”‚ tenant_agent_00 โ”‚ staff โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 1 โ”‚ tenant_agent_00 โ”‚ bookings โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 2 โ”‚ tenant_agent_00 โ”‚ users โ”‚ 0sec โ”‚ dev.local โ”‚
โ•ฐโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
```

```
> collections drop staff --scope tenant_agent_00
> collections --scope tenant_agent_00
โ•ญโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # โ”‚ scope โ”‚ collection โ”‚ max_expiry โ”‚ cluster โ”‚
โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0 โ”‚ tenant_agent_00 โ”‚ bookings โ”‚ 0sec โ”‚ dev.local โ”‚
โ”‚ 1 โ”‚ tenant_agent_00 โ”‚ users โ”‚ 0sec โ”‚ dev.local โ”‚
โ•ฐโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
```
include::commands/collections.adoc[]

=== Listing `nodes`

Expand Down
63 changes: 63 additions & 0 deletions docs/commands/collections.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
=== collections

The `collections` commands are used to manage collections.

==== `collections`

Lists all of the collections in the active scope:

```
๐Ÿ‘ค Charlie ๐Ÿ  local in ๐Ÿ—„ travel-sample.inventory._default
> collections
โ•ญโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # โ”‚ collection โ”‚ max_expiry โ”‚ cluster โ”‚
โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0 โ”‚ landmark โ”‚ inherited โ”‚ local โ”‚
โ”‚ 1 โ”‚ hotel โ”‚ inherited โ”‚ local โ”‚
โ”‚ 2 โ”‚ airport โ”‚ inherited โ”‚ local โ”‚
โ”‚ 3 โ”‚ airline โ”‚ inherited โ”‚ local โ”‚
โ”‚ 4 โ”‚ route โ”‚ inherited โ”‚ local โ”‚
โ•ฐโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
```

==== `collections create`

Create a collection with the name supplied:

```
๐Ÿ‘ค Charlie ๐Ÿ  local in ๐Ÿ—„ my-bucket.my-scope._default
> collections
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ empty list โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
๐Ÿ‘ค Charlie ๐Ÿ  local in ๐Ÿ—„ my-bucket.my-scope._default
> collections create new-collection
๐Ÿ‘ค Charlie ๐Ÿ  local in ๐Ÿ—„ my-bucket.my-scope._default
> collections
โ•ญโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # โ”‚ collection โ”‚ max_expiry โ”‚ cluster โ”‚
โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0 โ”‚ new-collection โ”‚ inherited โ”‚ local โ”‚
โ•ฐโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
```

==== `collections drop`

Drop the collection matching the name given:

```
๐Ÿ‘ค Charlie ๐Ÿ  local in ๐Ÿ—„ default.my-scope._default
> collections
โ•ญโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # โ”‚ collection โ”‚ max_expiry โ”‚ cluster โ”‚
โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0 โ”‚ new-collection โ”‚ inherited โ”‚ local โ”‚
โ•ฐโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
๐Ÿ‘ค Charlie ๐Ÿ  local in ๐Ÿ—„ default.my-scope._default
> collections drop new-collection
๐Ÿ‘ค Charlie ๐Ÿ  local in ๐Ÿ—„ default.my-scope._default
> collections
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ empty list โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
```
73 changes: 73 additions & 0 deletions docs/commands/scopes.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
=== scopes

The `scopes` commands are used to manage scopes.

==== `scopes`

Lists all of the scopes in the active bucket:

```
๐Ÿ‘ค Charlie ๐Ÿ  local in ๐Ÿ—„ travel-sample._default._default
> scopes
โ•ญโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # โ”‚ scope โ”‚ cluster โ”‚
โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0 โ”‚ inventory โ”‚ local โ”‚
โ”‚ 1 โ”‚ tenant_agent_00 โ”‚ local โ”‚
โ”‚ 2 โ”‚ tenant_agent_01 โ”‚ local โ”‚
โ”‚ 3 โ”‚ tenant_agent_02 โ”‚ local โ”‚
โ”‚ 4 โ”‚ tenant_agent_03 โ”‚ local โ”‚
โ”‚ 5 โ”‚ tenant_agent_04 โ”‚ local โ”‚
โ”‚ 6 โ”‚ _default โ”‚ local โ”‚
โ•ฐโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
```


==== `scopes create`

Creates a scope with the name supplied:

```
๐Ÿ‘ค Charlie ๐Ÿ  local in ๐Ÿ—„ default._default._default
> scopes
โ•ญโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # โ”‚ scope โ”‚ cluster โ”‚
โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0 โ”‚ _default โ”‚ local โ”‚
โ•ฐโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
๐Ÿ‘ค Charlie ๐Ÿ  local in ๐Ÿ—„ default._default._default
> scopes create new-scope
๐Ÿ‘ค Charlie ๐Ÿ  local in ๐Ÿ—„ default._default._default
> scopes
โ•ญโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # โ”‚ scope โ”‚ cluster โ”‚
โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0 โ”‚ new-scope โ”‚ local โ”‚
โ”‚ 1 โ”‚ _default โ”‚ local โ”‚
โ•ฐโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
```

==== `scopes drop`


Deletes the scope matching the given name:

```
๐Ÿ‘ค Charlie ๐Ÿ  local in ๐Ÿ—„ default._default._default
> scopes
โ•ญโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # โ”‚ scope โ”‚ cluster โ”‚
โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0 โ”‚ new-scope โ”‚ local โ”‚
โ”‚ 1 โ”‚ _default โ”‚ local โ”‚
โ•ฐโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
๐Ÿ‘ค Charlie ๐Ÿ  local in ๐Ÿ—„ default._default._default
> scopes drop new-scope
๐Ÿ‘ค Charlie ๐Ÿ  local in ๐Ÿ—„ default._default._default
> scopes
โ•ญโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ # โ”‚ scope โ”‚ cluster โ”‚
โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0 โ”‚ _default โ”‚ local โ”‚
โ•ฐโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
```

0 comments on commit 4ec3ecf

Please sign in to comment.