Skip to content

Commit

Permalink
use right command for cli tool in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
akhundMurad committed Jul 8, 2023
1 parent 13d32a0 commit 04f20ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,21 @@ This particular implementation provides an pip package that can be used by any P
- To generate a new TypeID, run:

```console
$ typeid new -p prefix
$ python3 -m typeid.cli new -p prefix
prefix_01h2xcejqtf2nbrexx3vqjhp41
```

- To decode an existing TypeID into a UUID run:

```console
$ typeid decode prefix_01h2xcejqtf2nbrexx3vqjhp41
$ python3 -m typeid.cli decode prefix_01h2xcejqtf2nbrexx3vqjhp41
type: prefix
uuid: 0188bac7-4afa-78aa-bc3b-bd1eef28d881
```

- And to encode an existing UUID into a TypeID run:

```console
$ typeid encode 0188bac7-4afa-78aa-bc3b-bd1eef28d881 --prefix prefix
$ python3 -m typeid.cli encode 0188bac7-4afa-78aa-bc3b-bd1eef28d881 --prefix prefix
prefix_01h2xcejqtf2nbrexx3vqjhp41
```

0 comments on commit 04f20ae

Please sign in to comment.