Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit f990941

Browse files
committed
Enabled 99 chunk files, up from 99.
2 parents 4586faa + 95f1646 commit f990941

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

cli/commands/database

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,12 @@ function database_import() {
156156

157157
fi
158158

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
164165
fi
165166

166167
output "Dropping any prior tables"
@@ -295,6 +296,7 @@ function database_chunk() {
295296
--line-bytes="${CHUNK_SIZE}" \
296297
--numeric-suffixes="1" \
297298
--additional-suffix=".sql.chunk" \
299+
--suffix-length=3 \
298300
"${backup_file}" \
299301
"${sql_filename}/${sql_basename}-"
300302
if [ $? -ne 0 ]; then

commands/help

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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

0 commit comments

Comments
 (0)