Prefer positional arguments in CLI commands
This commit is contained in:
parent
dc7d533c42
commit
d2444826fc
2 changed files with 5 additions and 11 deletions
10
README.md
10
README.md
|
@ -164,25 +164,25 @@ mitractl list-invite-codes
|
||||||
Delete profile:
|
Delete profile:
|
||||||
|
|
||||||
```
|
```
|
||||||
mitractl delete-profile -i 55a3005f-f293-4168-ab70-6ab09a879679
|
mitractl delete-profile 55a3005f-f293-4168-ab70-6ab09a879679
|
||||||
```
|
```
|
||||||
|
|
||||||
Delete post:
|
Delete post:
|
||||||
|
|
||||||
```
|
```
|
||||||
mitractl delete-post -i 55a3005f-f293-4168-ab70-6ab09a879679
|
mitractl delete-post 55a3005f-f293-4168-ab70-6ab09a879679
|
||||||
```
|
```
|
||||||
|
|
||||||
Remove remote posts and media older than 30 days:
|
Remove remote posts and media older than 30 days:
|
||||||
|
|
||||||
```
|
```
|
||||||
mitractl delete-extraneous-posts -d 30
|
mitractl delete-extraneous-posts 30
|
||||||
```
|
```
|
||||||
|
|
||||||
Delete attachments that doesn't belong to any post:
|
Delete attachments that doesn't belong to any post:
|
||||||
|
|
||||||
```
|
```
|
||||||
mitractl delete-unused-attachments -d 5
|
mitractl delete-unused-attachments 5
|
||||||
```
|
```
|
||||||
|
|
||||||
Generate ethereum address:
|
Generate ethereum address:
|
||||||
|
@ -194,7 +194,7 @@ mitractl generate-ethereum-address
|
||||||
Update blockchain synchronization starting block:
|
Update blockchain synchronization starting block:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
mitractl update-current-block -n 2000000
|
mitractl update-current-block 2000000
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
|
@ -82,7 +82,6 @@ struct ListInviteCodes;
|
||||||
/// Re-fetch actor profile by actor ID
|
/// Re-fetch actor profile by actor ID
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
struct RefetchActor {
|
struct RefetchActor {
|
||||||
#[clap(short)]
|
|
||||||
id: String,
|
id: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,21 +102,18 @@ impl RefetchActor {
|
||||||
/// Delete profile
|
/// Delete profile
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
struct DeleteProfile {
|
struct DeleteProfile {
|
||||||
#[clap(short)]
|
|
||||||
id: Uuid,
|
id: Uuid,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Delete post
|
/// Delete post
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
struct DeletePost {
|
struct DeletePost {
|
||||||
#[clap(short)]
|
|
||||||
id: Uuid,
|
id: Uuid,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Delete old remote posts
|
/// Delete old remote posts
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
struct DeleteExtraneousPosts {
|
struct DeleteExtraneousPosts {
|
||||||
#[clap(short)]
|
|
||||||
days: i64,
|
days: i64,
|
||||||
|
|
||||||
#[clap(long)]
|
#[clap(long)]
|
||||||
|
@ -127,7 +123,6 @@ struct DeleteExtraneousPosts {
|
||||||
/// Delete attachments that don't belong to any post
|
/// Delete attachments that don't belong to any post
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
struct DeleteUnusedAttachments {
|
struct DeleteUnusedAttachments {
|
||||||
#[clap(short)]
|
|
||||||
days: i64,
|
days: i64,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,7 +156,6 @@ impl DeleteOrphanedFiles {
|
||||||
/// Update blockchain synchronization starting block
|
/// Update blockchain synchronization starting block
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
struct UpdateCurrentBlock {
|
struct UpdateCurrentBlock {
|
||||||
#[clap(short)]
|
|
||||||
number: u64,
|
number: u64,
|
||||||
|
|
||||||
#[clap(long)]
|
#[clap(long)]
|
||||||
|
|
Loading…
Reference in a new issue