-
Notifications
You must be signed in to change notification settings - Fork 0
CliCompiler how to parse file
DescribeCompilerCLI parse-file "C:\parse\path\input.ds" "C:\result\path\output.json"
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-file PARSE_PATH RESULT_PATH [ 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-file command is used to parse a single file. First we specify the command - parse-file, followed by the path of the source file 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.
-
input-password
The Describe Transpiler Cli v1.0 now supports working with encrypted files. Theinput-passwordargument is used to provide a password that will be used to decrypt an encrypted source file ('.denc') before trying to parse it (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-passwordis 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-passwordis 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-versionspecifies what Describe version to be used as a default. However, if the file to be parsed contains alanguage-versiondirective, this argument will be overwritten in favor of the directive. Expected values are -0.6or the shorthand version -06,0.7or the shorthand version -07,0.8or the shorthand version -08,0.9or the shorthand version -09,1.0or the shorthand version -10,1.1or 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:trueandfalse. Default is false. -
verbosity
The log verbosity of the CLI app. Same aslog-verbosity.lorlowfor low verbosity,mormediumfor medium verbosity orhorhighfor 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 thecensorflag.{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,VIOLETandCYAN. 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