Skip to content

Commit

Permalink
fix: Set -bs switch to repeating type and add some markers for parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
q2s2t committed Oct 10, 2018
1 parent b7f4351 commit 40e6750
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/references.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const swContextBool = {
export const swRepeating = {
ai: undefined, // Include archive filenames
ax: undefined, // Exclude archive filenames
bs: undefined, // Set output stream for output/error/progress
i: undefined, // Include filenames
m: undefined, // Set Compression Method
v: undefined, // Create Volumes
Expand All @@ -48,7 +49,6 @@ export const swRepeating = {
export const swArgs = {
ao: undefined, // Overwrite mode
bb: undefined, // Set output log level
bs: undefined, // Set output stream for output/error/progress
o: undefined, // Set Output directory
p: undefined, // Set Password
// r: undefined, // Recurse subdirectories. Use boolean instead
Expand All @@ -68,8 +68,11 @@ export const swArgs = {
* Stages represents the advancement of the 7z stdout.
* 1 - Headers: Versions of 7zip, specs
* 2 - Files: The list of files
* 3 - Footer: 'Everything is Ok', file count
* 3 - Footers: 'Everything is Ok', file count
*/
export const STAGE_HEADERS = 10
export const STAGE_FILES = 20
export const STAGE_FOOTER = 30
export const STAGE_FOOTERS = 30

export const MARKER_NEWLINE = `\n`
export const MARKER_PROGRESS = `\x08\x08\x08\x08 \x08\x08\x08\x08`

0 comments on commit 40e6750

Please sign in to comment.