chore(doc): improve import usage section exmaples

This commit is contained in:
Levente Polyak 2021-10-21 20:17:09 +02:00
parent 94b910a55e
commit bc8c51749c
No known key found for this signature in database
GPG Key ID: FC1B547C8D8172C8

View File

@ -20,25 +20,25 @@ from the provided data structure and to install it:
## Usage
Import of a new packager key
### Import
Import a new packager key by deriving the username from the filename.
```bash
./keyringctl import <username>.asc
# alternatively override the username otherwise derived from the filename
./keyringctl import --name <username> <file>
```
Updates to existing packager keys
Alternatively import a file or directory and override the username
```bash
# username is automatically derived from the fingerprint
./keyringctl import <file_or_directory>...
./keyringctl import --name <username> <file_or_directory>
```
Import of a new main key
Updates to existing keys will automatically derive the username from the known fingerprint.
```bash
./keyringctl import <file_or_directory>
```
Main key imports support the same options plus a mandatory `--main`
```bash
# same options as packager key except mandatory --main
./keyringctl import --main <username>.asc
```