This repository was archived by the owner on Jan 25, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +28
-5
lines changed Expand file tree Collapse file tree 2 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -156,11 +156,12 @@ function database_import() {
156
156
157
157
fi
158
158
159
- database_backup " ${basefile} .bak"
160
-
161
- if [ $? -ne 0 ]; then
162
- output " Error when backing up to ${basefile} .bak"
163
- return 4
159
+ if [ ! $( has_arg --no-backup) ]; then
160
+ database_backup " ${basefile} .bak"
161
+ if [ $? -ne 0 ]; then
162
+ output " Error when backing up to ${basefile} .bak"
163
+ return 4
164
+ fi
164
165
fi
165
166
166
167
output " Dropping any prior tables"
@@ -295,6 +296,7 @@ function database_chunk() {
295
296
--line-bytes=" ${CHUNK_SIZE} " \
296
297
--numeric-suffixes=" 1" \
297
298
--additional-suffix=" .sql.chunk" \
299
+ --suffix-length=3 \
298
300
" ${backup_file} " \
299
301
" ${sql_filename} /${sql_basename} -"
300
302
if [ $? -ne 0 ]; then
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ cat << EOF
4
+
5
+ ${YELLOW} WPLib Box ${GREEN} CLI${RESET} usage:
6
+
7
+ box ${GREEN} database${RESET} [<args>] - Manage databases.
8
+ box ${GREEN} container${RESET} [<args>] - Manage Docker containers.
9
+
10
+ box ${GREEN} startup${RESET} - Start Docker containers found in project.json's services object.
11
+ box ${GREEN} restart${RESET} - Restart Docker containers found in project.json's services object.
12
+ box ${GREEN} shutdown${RESET} - Shutdown all Docker containers.
13
+
14
+ box ${GREEN} status${RESET} - Output status of WPLib Box's standard containers.
15
+ box ${GREEN} version${RESET} - Display the current version of this WPLib Box VM.
16
+ box ${GREEN} self-update${RESET} - Update this CLI tool to the latest version for this Box version.
17
+
18
+ box ${GREEN} test${RESET} - Update this CLI tool to the latest version for this Box version.
19
+
20
+ box [${GREEN} help${RESET} ] - Display the above information.
21
+ EOF
You can’t perform that action at this time.
0 commit comments