-
Notifications
You must be signed in to change notification settings - Fork 0
CliCompiler how to parse folder
DescribeCompilerCLI parse-folder "C:\parse\path\input\" "C:\result\path\output.json"
dsonly=true toponly=false onerror=ignore
input-password="qwertyi" output-password="qwertyo" log-password="qwertyl"
language-version=1.0 translator=JSON verbosity=low beautify=true logfile="C:\parse\path\log.txt"
censor auto theme=DBLUE
parse-folder PARSE_PATH RESULT_PATH [ dsonly=<verb> ][ toponly=<verb> ][ onerror=<verb> ] [ input-password=INPUT_PASSWORD ][ output-password=OUTPUT_PASSWORD ][ log-password=LOG_PASSWORD ] [ language-version=<verb> | lang-ver=<verb> ][ translator=(TARGET_LANGUAGE | TRANSLATOR_NAME) ] [ beautify=<verb> ][ verbosity=<verb> | log-verbosity=<verb> ] [ logfile=LOG_PATH | log-file=LOG_PATH ][ theme=<verb> ][ censor ][ auto ]
The parse-folder command is used to parse a directory full of Describe source files (.ds files). First we specify the command, followed by the source directory to be parsed and the output file path. Any arguments after these are optional. If the output file path we have specified is a path to an existing file, that file will be overwritten.
-
dsonly
Whether to omit files that are not Describe source files (.DS).true
orfalse
. If set tofalse
, all files will be parsed, no matter the file extension - JPEG, EXE, etc., or rather tried and those not containing only proper Describe source code will fail. Default is true. -
toponly
Whether to parse files in the top only directory, or parse files in child directories as well.true
orfalse
. Default is false, meaning we will parse files in all child directories as well. -
onerror
What to do when there is an error in source code.stop
orignore
. Default is stop. -
input-password
The Describe Transpiler Cli v1.0 now supports working with encrypted files. Theinput-password
is used to provide a password that will be used to decrypt encrypted source files (those with the file extention '.denc') before trying to parse them (Which will fail if the password is incorrect or if the file has been encrypted with a different tool that uses incompatible encryption algorithm/implementation). -
output-password
The Describe Transpiler Cli v1.0 now supports working with encrypted files. Theoutput-password
is used to provide a password that will be used to encrypt the output file (the transpilation result). -
log-password
The Describe Transpiler Cli v1.0 now supports working with encrypted files. Thelog-password
is used to provide a password that will be used to encrypt the log file, as to prevent leaking secret information in the logs, in cases where working with encrypted data and utilizing log files. -
language-version
Can also be written aslang-ver
. Thelanguage-version
specifies what Describe version to be used as a default. However, if the file to be parsed contains alanguage-version
directive, this argument will be overwritten in favor of the directive. Expected values are -0.6
or the shorthand version -06
,0.7
or the shorthand version -07
,0.8
or the shorthand version -08
,0.9
or the shorthand version -09
,1.0
or the shorthand version -10
,1.1
or the shorthand version -11
. If not specified, the default is Describe v1.0. -
translator
Either the desired output language or the name of the translator to be used. The logic here is simple - each language has a default inbuilt translator for it, and that translator will be used if only the desired output language is specified. Expected values are: for languages -JSON
,HTML
,XML
,SQL
; for translator names -HTML_PLAIN
,HTML_PAGE
,XML_PLAIN
,SQL_FILEFILL
,JSON_BASIC
,JSON_LISTIARY
. If not specified, the default isHTML_PAGE
. -
beautify
Whether the output should be beautified/formatted with new lines and indentation. The logic behind this is that if you are going to manually work with the transpiled output, you would probably want it in an appropriate format, but if not, the extra whitespace is undesirable as it only bulks up the data. This is supported on per-translator basis, although most translators support this. Expected values are:true
andfalse
. Default is false. -
verbosity
The log verbosity of the CLI app. Same aslog-verbosity
.l
orlow
for low verbosity,m
ormedium
for medium verbosity orh
orhigh
for high verbosity. Low is default. -
logfile
Specifies path of directory or file to output logs to. If not specified, logs will be outputted only to the console, which is the default. If the specified path is a path to an existing file, that file will be overwritten. -
censor
The censor flag provides a way to cover up some sensitive data. For example, I might have a personal list that is absolutely fine for my personal use. However, if I need to share it publicly, I might want to edit out some of my private or sensitive information. The censor flag is a convenient way to do just that. The way it works is that users use the{sensitive}
,{secret}
and{hidden}
decorators in their describe source code, and when they need to get a censored output, they use thecensor
flag.{sensitive}
entries will have every character that is not a whitespace replaced with a question mark.{secret}
and{hidden}
will completely hide the data -{secret}
will produce a random number of black squares and{hidden}
will produce some random-length gibberish text. This is implemented per translator, and not every translator might support this argument. Currently it is supported only in the inbuilt HTML translators. -
auto
The auto flag specifies that the tool is being invoked from a script or a tool. Essentially, it removes stuff like changing console colors and prompts likePress any key to exit.
, as those can break or complicate automated scripts and tools. -
theme
The CLI Transpiler now supports different color themes, via this argument. Expected values are:DBLUE
,LBLUE
,GREEN
,PASTEL
,EARTH
,CONTRAST
,DEFAULT
,VIOLET
andCYAN
. You can see those themes demonstrated here.
Home
Grammar How To
Compiler How To
CLI Compiler - How to
CLI Compiler - How to - help
CLI Compiler - How to - parse-file
CLI Compiler - How to - parse-folder
CLI Compiler - How to - encrypt-file
CLI Compiler - How to - decrypt-file
CLI Compiler - How to - recrypt-file
CLI Compiler - How to - encrypt-folder
CLI Compiler - How to - decrypt-folder
CLI Compiler - How to - recrypt-folder
API Compiler - How to
API Compiler - How to - Example 1
API Compiler - How to - Example 2
API Compiler - How to - Example 3
API Compiler - How to - Example 4
API Compiler - How to - Example 5
AWS Compiler - How to
AWS technical overview
API gateway configuration
output - low
output - medium
output - high
output - themes
Grammar - Lists
Grammar - Comments
Grammar - Links
Grammar - Decorators
Grammar - Tags
Grammar - More on Tags
Grammar - Directives
Grammar - Dot Notation
Grammar - Tildes
Grammar - Files
Deprecated - Slash Notation
Deprecated - Delimiter Mode
Describe Basics - v0.6
Describe Tags - v0.7
Describe Links - v0.8
Describe Decorators - v0.9
Describe Lines - v1.0
Describe Doubles - v1.1