feat: task cleanup
This commit is contained in:
5 files changed
+21
-24
No files matched your search
+1
-1
Submodule addons/account_invoicing updated: c972bf096b...2245a0f7f0.
+1
-1
Submodule addons/sale_workflow updated: 3fb8bf739a...54affc6504.
+1
-1
Submodule addons/server_tools updated: 3a759f8e73...74bffd5028.
+1
-1
Submodule addons/vertical_saas updated: e9731bc30d...9f440cff8e.
@@ -23,7 +23,6 @@ function help-table() {
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "convert-database" "[db]" "Convert database backup file from PostgreSQL 9.5 to latest. Default is branch name."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "create-module" "[path]" "Create new Odoo module from template."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "create-revision" "[revision]" "Create new Odoo revision."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "deploy" "[name]" "Deploy to Kubernetes cluster. Options: db, admin, odoo, mail."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "disable-auto-install" "" "Disable auto install for enterprise modules."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "disable-mailserver" "[env]" "Disable mail server settings via xmlrpc."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "docker-login" "" "Setup Docker Hub login credentials."
|
||||
@@ -34,7 +33,7 @@ function help-table() {
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "generate-help-doc" "" "Write help table to task.md file."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "generate-module-security" "[path][model]" "Generate model access file for a selected model of a module."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "generate-module-model" "[path][model]" "Generate model files from module template."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "get-addons-path" "" "Finds modules in addons folder."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "get-addons-path" "" "Find nested modules and return addons path."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "get-module-version" "[path]" "Get module version from manifest."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "git-feature-branch" "[path]" "Create feature branch for Odoo module."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "git-mig-branch" "[path]" "Create migration branch for Odoo module."
|
||||
@@ -48,7 +47,7 @@ function help-table() {
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "import-csv" "[db][path]" "Import data from csv. Filename must match PostgreSQL table name."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "info" "" "Show values of project env vars."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "init-db" "[db]" "Initialize the Odoo database. Default is branch name."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "init-minikube" "" "Deploy the Odoo K8s manifets."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "init-minikube" "" "Deploy the Odoo K8s manifests."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "init-nextcloud-env" "[env]" "Create env file for Nextcloud instance."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "init-odoo-env" "[env]" "Create env file for Odoo Instance."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "init-venv" "" "Initialize python virtual env."
|
||||
@@ -60,8 +59,7 @@ function help-table() {
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "install-snippet" "[env][path]" "Install snippet xml definition."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "lint-module" "[path]" "Run pylint odoo for module."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "lint-snippets" "" "Run checks for all snippets."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "list" "" "List Docker containers."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "list-addons" "" "List Odoo addons."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "list-modules" "" "List Odoo modules."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "list-env" "" "List env files."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "list-revision" "" "List available Odoo revisions."
|
||||
printf "| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n" "logs" "" "Tail Odoo Docker container logs."
|
||||
@@ -173,6 +171,8 @@ function version() {
|
||||
psql -V
|
||||
docker -v
|
||||
docker-compose -v
|
||||
minikube version
|
||||
kubectl version
|
||||
}
|
||||
|
||||
function set-addons-path() {
|
||||
@@ -214,6 +214,15 @@ function get-addons-path() {
|
||||
echo "$ADDONS_PATH"
|
||||
}
|
||||
|
||||
function list-env() {
|
||||
ls -f "$ODOO_DEVELOPMENT_CONFIG_DIR"
|
||||
}
|
||||
|
||||
function list-modules() {
|
||||
set-addons-path
|
||||
echo "$ADDONS_PATH" | tr "," "\n" | xargs -I {} find {} -type f -name "__manifest__.py" | xargs grep -l "version.*${GIT_BRANCH}" | xargs -r dirname | xargs -r -I {} basename {} | sort -u
|
||||
}
|
||||
|
||||
function update-readme() {
|
||||
if test -z "$1"; then echo "\$1 is empty."; exit; fi
|
||||
README_PATH="$1"
|
||||
@@ -652,12 +661,6 @@ function translate-module() {
|
||||
odoo -d "$DATABASE" --config "config/odoo.conf" --addons-path="$ADDONS_PATH" --modules "$MODULE_NAME" -l "$LANGUAGE" --i18n-export "$MODULE_PATH/i18n/$LANGUAGE.po"
|
||||
}
|
||||
|
||||
function list-addons() {
|
||||
activate-venv
|
||||
set-addons-path
|
||||
echo "$ADDONS_PATH"
|
||||
}
|
||||
|
||||
function import-csv() {
|
||||
if test -z "$1"; then echo "\$1 is empty."; exit; fi
|
||||
|
||||
@@ -1560,9 +1563,6 @@ case "$1" in
|
||||
create-revision)
|
||||
create-revision "$2"
|
||||
;;
|
||||
deploy)
|
||||
deploy "$2"
|
||||
;;
|
||||
disable-auto-install)
|
||||
disable-auto-install
|
||||
;;
|
||||
@@ -1684,14 +1684,11 @@ case "$1" in
|
||||
lint-snippets)
|
||||
lint-snippets
|
||||
;;
|
||||
list-addons)
|
||||
list-addons
|
||||
;;
|
||||
list-env)
|
||||
ls -f "$ODOO_DEVELOPMENT_CONFIG_DIR"
|
||||
list-env
|
||||
;;
|
||||
list)
|
||||
docker-compose config --services; echo "native"
|
||||
list-modules)
|
||||
list-modules
|
||||
;;
|
||||
logs)
|
||||
docker logs odoo -f
|
||||
|
||||
Reference in new issue
Block a user