Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ cargo install --git https://github.com/heroesofcode/heroesofcode-git

### List all repositories
```sh
hoc repos
hoc repos # or hoc r
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Including comments like # or hoc r inside the shell code blocks can make them less clean for copy-pasting. Consider documenting the aliases in a more structured way, such as separate lines or in the section headers.

Suggested change
hoc repos # or hoc r
hoc repos
# or
hoc r

```

### Clone repositories interactively
```sh
hoc clone
hoc clone # or hoc c
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Including comments like # or hoc c inside the shell code blocks can make them less clean for copy-pasting.

Suggested change
hoc clone # or hoc c
hoc clone
# or
hoc c

```

### Clone all repositories
```sh
hoc all
hoc all # or hoc a
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Including comments like # or hoc a inside the shell code blocks can make them less clean for copy-pasting.

Suggested change
hoc all # or hoc a
hoc all
# or
hoc a

```

### Show open pull requests
```sh
hoc pr
hoc pr # or hoc p
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Including comments like # or hoc p inside the shell code blocks can make them less clean for copy-pasting.

Suggested change
hoc pr # or hoc p
hoc pr
# or
hoc p

```

### Help
Expand Down
4 changes: 4 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ struct Args {
#[derive(Subcommand)]
enum Command {
/// List all repositories
#[clap(visible_alias = "r")]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the rest of the file (e.g., line 11) and to follow modern clap v4 idioms, it is recommended to use the #[command] attribute instead of #[clap] for subcommand configuration.

Suggested change
#[clap(visible_alias = "r")]
#[command(visible_alias = "r")]

Repos,
/// Clone repositories
#[clap(visible_alias = "c")]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the rest of the file and to follow modern clap v4 idioms, it is recommended to use the #[command] attribute instead of #[clap].

Suggested change
#[clap(visible_alias = "c")]
#[command(visible_alias = "c")]

Clone,
/// Clone all repositories
#[clap(visible_alias = "a")]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the rest of the file and to follow modern clap v4 idioms, it is recommended to use the #[command] attribute instead of #[clap].

Suggested change
#[clap(visible_alias = "a")]
#[command(visible_alias = "a")]

All,
/// Show open pull requests
#[clap(visible_alias = "p")]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with the rest of the file and to follow modern clap v4 idioms, it is recommended to use the #[command] attribute instead of #[clap].

Suggested change
#[clap(visible_alias = "p")]
#[command(visible_alias = "p")]

Pr,
}

Expand Down
Loading