Skip to content

Commit 28217f9

Browse files
authored
docs: Add missing docs to cli commands (#205)
1 parent 48f29df commit 28217f9

File tree

4 files changed

+37
-8
lines changed

4 files changed

+37
-8
lines changed

crates/icp-cli/src/commands/cycles/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ pub(crate) mod mint;
77

88
#[derive(Subcommand, Debug)]
99
pub(crate) enum Command {
10+
/// Display the cycles balance
1011
Balance(token::balance::BalanceArgs),
12+
13+
/// Convert icp to cycles
1114
Mint(mint::MintArgs),
1215
}

crates/icp-cli/src/commands/environment/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ pub(crate) mod list;
44

55
#[derive(Subcommand, Debug)]
66
pub(crate) enum Command {
7+
/// Display a list of enviroments
78
List(list::ListArgs),
89
}

crates/icp-cli/src/commands/identity/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,18 @@ pub(crate) mod principal;
88

99
#[derive(Debug, Subcommand)]
1010
pub(crate) enum Command {
11+
/// Display the currently selected identity
1112
Default(default::DefaultArgs),
13+
14+
/// Import a new identity
1215
Import(import::ImportArgs),
16+
17+
/// List the identities
1318
List(list::ListArgs),
19+
20+
/// Create a new identity
1421
New(new::NewArgs),
22+
23+
/// Display the principal for the current identity
1524
Principal(principal::PrincipalArgs),
1625
}

docs/cli-reference.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -424,13 +424,15 @@ Mint and manage cycles
424424

425425
###### **Subcommands:**
426426

427-
* `balance`
428-
* `mint`
427+
* `balance`Display the cycles balance
428+
* `mint`Convert icp to cycles
429429

430430

431431

432432
## `icp-cli cycles balance`
433433

434+
Display the cycles balance
435+
434436
**Usage:** `icp-cli cycles balance [OPTIONS]`
435437

436438
###### **Options:**
@@ -443,6 +445,8 @@ Mint and manage cycles
443445

444446
## `icp-cli cycles mint`
445447

448+
Convert icp to cycles
449+
446450
**Usage:** `icp-cli cycles mint [OPTIONS]`
447451

448452
###### **Options:**
@@ -492,12 +496,14 @@ Show information about the current project environments
492496

493497
###### **Subcommands:**
494498

495-
* `list`
499+
* `list`Display a list of enviroments
496500

497501

498502

499503
## `icp-cli environment list`
500504

505+
Display a list of enviroments
506+
501507
**Usage:** `icp-cli environment list`
502508

503509

@@ -510,16 +516,18 @@ Manage your identities
510516

511517
###### **Subcommands:**
512518

513-
* `default`
514-
* `import`
515-
* `list`
516-
* `new`
517-
* `principal`
519+
* `default`Display the currently selected identity
520+
* `import`Import a new identity
521+
* `list`List the identities
522+
* `new`Create a new identity
523+
* `principal`Display the principal for the current identity
518524

519525

520526

521527
## `icp-cli identity default`
522528

529+
Display the currently selected identity
530+
523531
**Usage:** `icp-cli identity default [NAME]`
524532

525533
###### **Arguments:**
@@ -530,6 +538,8 @@ Manage your identities
530538

531539
## `icp-cli identity import`
532540

541+
Import a new identity
542+
533543
**Usage:** `icp-cli identity import [OPTIONS] <--from-pem <FILE>|--read-seed-phrase|--from-seed-file <FILE>> <NAME>`
534544

535545
###### **Arguments:**
@@ -548,12 +558,16 @@ Manage your identities
548558

549559
## `icp-cli identity list`
550560

561+
List the identities
562+
551563
**Usage:** `icp-cli identity list`
552564

553565

554566

555567
## `icp-cli identity new`
556568

569+
Create a new identity
570+
557571
**Usage:** `icp-cli identity new [OPTIONS] <NAME>`
558572

559573
###### **Arguments:**
@@ -568,6 +582,8 @@ Manage your identities
568582

569583
## `icp-cli identity principal`
570584

585+
Display the principal for the current identity
586+
571587
**Usage:** `icp-cli identity principal [OPTIONS]`
572588

573589
###### **Options:**

0 commit comments

Comments
 (0)