aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSascha <GlancingMind@outlook.com>2021-05-09 11:14:45 +0200
committerGitHub <noreply@github.com>2021-05-09 11:14:45 +0200
commit1939949fcdd5d540fd20ead79b9c5d27e85e8f9d (patch)
treea7c6889584d3a74b3aa99c05e23b05a5b1c9b7f3 /doc
parentbdb832639d9d3ddf2f7e817252eaef48c9d59d4e (diff)
downloadgit-bug-1939949fcdd5d540fd20ead79b9c5d27e85e8f9d.tar.gz
CLI: Add non-interactive option to interactive commands (#651)
* Add option to skip the AvatarURL input request Using an empty string for the avatar cli flag e.g. `git-bug user create -a ""` will still result in a prompt. As the avatar URL is an optional option, it should be possible to skip asking for it entirely. Otherwise automated user creation via a script must make use of pipe hacks. * Add global --non-interactive cmdline option * Replace --skipAvatar for --non-interactive option * Cmd BugAdd: respect non-interactive option * Cmd bridge configure: respect non-interactive opt * Cmd CommentAdd: respect non-interactive option * Cmd CommentEdit: respect non-interactive option * Cmd TermUI: respect non-interactive option * Cmd TitleEdit: respect non-interactive option * Remove global non-interactive option * Cmd UserCreate: Use local non-interactive option * Cmd BugAdd: Use local non-interactive option * Cmd BridgeConfigure: Use local non-interactive option * Cmd CommentAdd: Use local non-interactive option * Cmd CommentEdit: Use local non-interactive option * Cmd TermUI: Drop non-interactive option It should be obviouse that the termui is an interactive command. * Cmd TitleEdit: Use local non-interactive option * Update docs * Bridge GitHub: respect non-interactive option * Bridge GitLab: respect non-interactive option * Bridge Jira: respect non-interactive and token opt * Fix failing compilation * Bridge launchpad: respect non-interactive option * bridge: isNonInteractive --> interactive Co-authored-by: Michael Muré <batolettre@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/man/git-bug-add.14
-rw-r--r--doc/man/git-bug-bridge-configure.14
-rw-r--r--doc/man/git-bug-comment-add.14
-rw-r--r--doc/man/git-bug-comment-edit.14
-rw-r--r--doc/man/git-bug-title-edit.14
-rw-r--r--doc/man/git-bug-user-create.14
-rw-r--r--doc/md/git-bug_add.md9
-rw-r--r--doc/md/git-bug_bridge_configure.md1
-rw-r--r--doc/md/git-bug_comment_add.md7
-rw-r--r--doc/md/git-bug_comment_edit.md7
-rw-r--r--doc/md/git-bug_title_edit.md5
-rw-r--r--doc/md/git-bug_user_create.md9
12 files changed, 46 insertions, 16 deletions
diff --git a/doc/man/git-bug-add.1 b/doc/man/git-bug-add.1
index f5083119..e9e85cfa 100644
--- a/doc/man/git-bug-add.1
+++ b/doc/man/git-bug-add.1
@@ -30,6 +30,10 @@ Create a new bug.
Take the message from the given file. Use \- to read the message from the standard input
.PP
+\fB\-\-non\-interactive\fP[=false]
+ Do not ask for user input
+
+.PP
\fB\-h\fP, \fB\-\-help\fP[=false]
help for add
diff --git a/doc/man/git-bug-bridge-configure.1 b/doc/man/git-bug-bridge-configure.1
index 3ce411a9..4e3da371 100644
--- a/doc/man/git-bug-bridge-configure.1
+++ b/doc/man/git-bug-bridge-configure.1
@@ -64,6 +64,10 @@ Configure a new bridge by passing flags or/and using interactive terminal prompt
The name of the remote repository
.PP
+\fB\-\-non\-interactive\fP[=false]
+ Do not ask for user input
+
+.PP
\fB\-h\fP, \fB\-\-help\fP[=false]
help for configure
diff --git a/doc/man/git-bug-comment-add.1 b/doc/man/git-bug-comment-add.1
index d1845782..c33ac22d 100644
--- a/doc/man/git-bug-comment-add.1
+++ b/doc/man/git-bug-comment-add.1
@@ -26,6 +26,10 @@ Add a new comment to a bug.
Provide the new message from the command line
.PP
+\fB\-\-non\-interactive\fP[=false]
+ Do not ask for user input
+
+.PP
\fB\-h\fP, \fB\-\-help\fP[=false]
help for add
diff --git a/doc/man/git-bug-comment-edit.1 b/doc/man/git-bug-comment-edit.1
index 741743a6..c476b47a 100644
--- a/doc/man/git-bug-comment-edit.1
+++ b/doc/man/git-bug-comment-edit.1
@@ -26,6 +26,10 @@ Edit an existing comment on a bug.
Provide the new message from the command line
.PP
+\fB\-\-non\-interactive\fP[=false]
+ Do not ask for user input
+
+.PP
\fB\-h\fP, \fB\-\-help\fP[=false]
help for edit
diff --git a/doc/man/git-bug-title-edit.1 b/doc/man/git-bug-title-edit.1
index ea378d42..2164d71a 100644
--- a/doc/man/git-bug-title-edit.1
+++ b/doc/man/git-bug-title-edit.1
@@ -22,6 +22,10 @@ Edit a title of a bug.
Provide a title to describe the issue
.PP
+\fB\-\-non\-interactive\fP[=false]
+ Do not ask for user input
+
+.PP
\fB\-h\fP, \fB\-\-help\fP[=false]
help for edit
diff --git a/doc/man/git-bug-user-create.1 b/doc/man/git-bug-user-create.1
index 181cd15f..f547ebd7 100644
--- a/doc/man/git-bug-user-create.1
+++ b/doc/man/git-bug-user-create.1
@@ -33,6 +33,10 @@ Create a new identity.
\fB\-n\fP, \fB\-\-name\fP=""
Name to identify the user
+.PP
+\fB\-\-non\-interactive\fP[=false]
+ Do not ask for user input
+
.SH SEE ALSO
.PP
diff --git a/doc/md/git-bug_add.md b/doc/md/git-bug_add.md
index 4e76ca7c..5e748610 100644
--- a/doc/md/git-bug_add.md
+++ b/doc/md/git-bug_add.md
@@ -9,10 +9,11 @@ git-bug add [flags]
### Options
```
- -t, --title string Provide a title to describe the issue
- -m, --message string Provide a message to describe the issue
- -F, --file string Take the message from the given file. Use - to read the message from the standard input
- -h, --help help for add
+ -t, --title string Provide a title to describe the issue
+ -m, --message string Provide a message to describe the issue
+ -F, --file string Take the message from the given file. Use - to read the message from the standard input
+ --non-interactive Do not ask for user input
+ -h, --help help for add
```
### SEE ALSO
diff --git a/doc/md/git-bug_bridge_configure.md b/doc/md/git-bug_bridge_configure.md
index f89de404..f71e294d 100644
--- a/doc/md/git-bug_bridge_configure.md
+++ b/doc/md/git-bug_bridge_configure.md
@@ -81,6 +81,7 @@ git bug bridge configure \
--token-stdin Will read the token from stdin and ignore --token
-o, --owner string The owner of the remote repository
-p, --project string The name of the remote repository
+ --non-interactive Do not ask for user input
-h, --help help for configure
```
diff --git a/doc/md/git-bug_comment_add.md b/doc/md/git-bug_comment_add.md
index 83133949..5a199aba 100644
--- a/doc/md/git-bug_comment_add.md
+++ b/doc/md/git-bug_comment_add.md
@@ -9,9 +9,10 @@ git-bug comment add [ID] [flags]
### Options
```
- -F, --file string Take the message from the given file. Use - to read the message from the standard input
- -m, --message string Provide the new message from the command line
- -h, --help help for add
+ -F, --file string Take the message from the given file. Use - to read the message from the standard input
+ -m, --message string Provide the new message from the command line
+ --non-interactive Do not ask for user input
+ -h, --help help for add
```
### SEE ALSO
diff --git a/doc/md/git-bug_comment_edit.md b/doc/md/git-bug_comment_edit.md
index 26571927..1a53b439 100644
--- a/doc/md/git-bug_comment_edit.md
+++ b/doc/md/git-bug_comment_edit.md
@@ -9,9 +9,10 @@ git-bug comment edit [COMMENT_ID] [flags]
### Options
```
- -F, --file string Take the message from the given file. Use - to read the message from the standard input
- -m, --message string Provide the new message from the command line
- -h, --help help for edit
+ -F, --file string Take the message from the given file. Use - to read the message from the standard input
+ -m, --message string Provide the new message from the command line
+ --non-interactive Do not ask for user input
+ -h, --help help for edit
```
### SEE ALSO
diff --git a/doc/md/git-bug_title_edit.md b/doc/md/git-bug_title_edit.md
index 61a4e4bd..ae060680 100644
--- a/doc/md/git-bug_title_edit.md
+++ b/doc/md/git-bug_title_edit.md
@@ -9,8 +9,9 @@ git-bug title edit [ID] [flags]
### Options
```
- -t, --title string Provide a title to describe the issue
- -h, --help help for edit
+ -t, --title string Provide a title to describe the issue
+ --non-interactive Do not ask for user input
+ -h, --help help for edit
```
### SEE ALSO
diff --git a/doc/md/git-bug_user_create.md b/doc/md/git-bug_user_create.md
index 25811322..68fc2c0e 100644
--- a/doc/md/git-bug_user_create.md
+++ b/doc/md/git-bug_user_create.md
@@ -9,10 +9,11 @@ git-bug user create [flags]
### Options
```
- -a, --avatar string Avatar URL
- -e, --email string Email of the user
- -h, --help help for create
- -n, --name string Name to identify the user
+ -a, --avatar string Avatar URL
+ -e, --email string Email of the user
+ -h, --help help for create
+ -n, --name string Name to identify the user
+ --non-interactive Do not ask for user input
```
### SEE ALSO