new default tasks

This commit is contained in:
Janik von Rotz committed 2021-11-18 19:21:20 +01:00
1 parent d9c72a4a2b
commit 3b5986f99f
3 files changed
+22 -6

No files matched your search

+2 -1
View File
@@ -10,7 +10,8 @@ module.exports = {
docsBranch: '14.0',
editLinks: true,
nav: [
{ text: 'Home', link: '/' }
{ text: 'Home', link: '/' },
{ text: 'Snippets', link: '/snippets' }
],
},
dest: 'public',
+15 -2
View File
@@ -132,6 +132,14 @@ function restart() {
fi
}
function stop() {
if test -z "$1"; then
docker-compose stop
fi
docker-compose restart $1
}
function start-shell() {
DATABASE=$1
DATABASE=${DATABASE:="odoo"}
@@ -148,7 +156,6 @@ function start-psql() {
docker exec -it db psql postgres://odoo:odoo@localhost:5432/$DATABASE
}
function init-db() {
DATABASE=$1
DATABASE=${DATABASE:="odoo"}
@@ -549,6 +556,12 @@ case "$1" in
checkout)
checkout $2
;;
list)
docker-compose config --services
;;
ps)
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{(.Label "description")}}\t{{.Status}}'
;;
start)
start $2
;;
@@ -556,7 +569,7 @@ case "$1" in
restart $2
;;
stop)
docker-compose stop
stop $2
;;
kill)
docker-compose down -v
+5 -3
View File
@@ -20,17 +20,19 @@
| kill | | Remove docker containers and volumes. |
| lint-module | [path] | Run pylint odoo for module. |
| logs | | Tail Odoo Docker container logs. |
| list | | List docker services. |
| ps | | List docker processes. |
| odoo-cloc | [db] | Count custom line of codes. |
| patch-database | [db] [path] | Apply sql file to database |
| release-module | [path] | Create GitHub release for a module. |
| remove-module | [db] [name] | Remove target Odoo module. |
| remove-submodule | [path] | Remove git submodule. |
| restart | [name] | Restart docker container. Options: none, db, mail |
| start | [name] | Start docker container. Options: none, db, mail, native |
| restart | [name] | Restart docker container. |
| start | [name] | Start docker container. |
| save-config | [name] | Save Odoo database config |
| start-psql | [db] | Start PSQL shell in Docker container. |
| start-shell | [db] | Start Odoo shell from source folder. |
| stop | | Stop docker containers. |
| stop | [name] | Stop docker containers. |
| test-module | [db] [name,path] | Test target Odoo module. |
| update-config | | Update odoo config. |
| update-app-list | [db] | Update app list. |