1 parent
655b5307b5
commit
aca8deb2f2
4 files changed
+16
No files matched your search
@@ -12,6 +12,7 @@ git:initialize <app> # Initialize a git repository
|
|||||||
git:public-key # Outputs the dokku public deploy key
|
git:public-key # Outputs the dokku public deploy key
|
||||||
git:report [<app>] [<flag>] # Displays a git report for one or more apps
|
git:report [<app>] [<flag>] # Displays a git report for one or more apps
|
||||||
git:set <app> <key> (<value>) # Set or clear a git property for an app
|
git:set <app> <key> (<value>) # Set or clear a git property for an app
|
||||||
|
git:status <app> # Show the working tree status for an app
|
||||||
git:unlock <app> [--force] # Removes previous git clone folder for new deployment
|
git:unlock <app> [--force] # Removes previous git clone folder for new deployment
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -37,5 +37,6 @@ fn-help-content() {
|
|||||||
git:report [<app>] [<flag>], Displays a git report for one or more apps
|
git:report [<app>] [<flag>], Displays a git report for one or more apps
|
||||||
git:set <app> <property> (<value>), Set or clear a git property for an app
|
git:set <app> <property> (<value>), Set or clear a git property for an app
|
||||||
git:unlock <app> [--force], Removes previous git clone folder for new deployment
|
git:unlock <app> [--force], Removes previous git clone folder for new deployment
|
||||||
|
git:status <app>, show the working tree status for an app
|
||||||
help_content
|
help_content
|
||||||
}
|
}
|
||||||
@@ -285,6 +285,14 @@ cmd-git-report-single() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cmd-git-status() {
|
||||||
|
declare APP="$1"
|
||||||
|
local APP_ROOT="$DOKKU_ROOT/$APP"
|
||||||
|
|
||||||
|
verify_app_name "$APP"
|
||||||
|
fn-git-cmd "$APP_ROOT" status
|
||||||
|
}
|
||||||
|
|
||||||
fn-git-auth-error() {
|
fn-git-auth-error() {
|
||||||
dokku_log_warn "There is no deploy key associated with the $DOKKU_SYSTEM_USER user."
|
dokku_log_warn "There is no deploy key associated with the $DOKKU_SYSTEM_USER user."
|
||||||
dokku_log_warn "Generate an ssh key with the following command (do not specify a password):"
|
dokku_log_warn "Generate an ssh key with the following command (do not specify a password):"
|
||||||
|
|||||||
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source "$PLUGIN_AVAILABLE_PATH/git/internal-functions"
|
||||||
|
set -eo pipefail
|
||||||
|
[[ $DOKKU_TRACE ]] && set -x
|
||||||
|
|
||||||
|
cmd-git-status "$@"
|
||||||
Reference in new issue
Block a user