Add the view command to the readme
This commit is contained in:
parent
b229ce9c5c
commit
21203eed43
2 changed files with 21 additions and 0 deletions
20
readme.md
20
readme.md
|
@ -27,6 +27,7 @@ Commands:
|
||||||
create Create an issue
|
create Create an issue
|
||||||
list Find issues currently assigned to you
|
list Find issues currently assigned to you
|
||||||
search Search for issues
|
search Search for issues
|
||||||
|
view View an issue
|
||||||
init Set up the configuration
|
init Set up the configuration
|
||||||
help Print this message or the help of the given subcommand(s)
|
help Print this message or the help of the given subcommand(s)
|
||||||
|
|
||||||
|
@ -104,6 +105,25 @@ Use [JQL](https://support.atlassian.com/jira-software-cloud/docs/use-advanced-se
|
||||||
jirac search 'project = KEY AND status = "In Progress" ORDER BY created DESC'
|
jirac search 'project = KEY AND status = "In Progress" ORDER BY created DESC'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### View an issue
|
||||||
|
|
||||||
|
```
|
||||||
|
View an issue
|
||||||
|
|
||||||
|
Usage: jirac view [OPTIONS] <ISSUE>
|
||||||
|
|
||||||
|
Arguments:
|
||||||
|
<ISSUE> An issue key, for example, KEY-123
|
||||||
|
|
||||||
|
Options:
|
||||||
|
--json Print JSON rather than pretty print
|
||||||
|
-h, --help Print help
|
||||||
|
```
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./target/release/jirac view KEY-123
|
||||||
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
Get the following information:
|
Get the following information:
|
||||||
|
|
|
@ -40,6 +40,7 @@ pub enum Commands {
|
||||||
#[arg(value_name = "JQL")]
|
#[arg(value_name = "JQL")]
|
||||||
jql: String,
|
jql: String,
|
||||||
},
|
},
|
||||||
|
/// View an issue
|
||||||
View {
|
View {
|
||||||
/// Print JSON rather than pretty print
|
/// Print JSON rather than pretty print
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
|
|
Loading…
Reference in a new issue