ProcessArgumentEscaper Class

Summary

Escapes process argument values so a standard Windows argv parser (CommandLineToArgvW / .NET PasteArguments) recovers the original string.
Namespace
Cake.Core.IO
Base Types
  • object
graph BT Type-->Base0["object"] Type["ProcessArgumentEscaper"] class Type type-node

Syntax

public static class ProcessArgumentEscaper

Methods

Name Value Summary
Escape(string, bool) string
Escapes a literal argument value for inclusion on a process command line.
static
IsQuoted(string) bool
Determines whether value is already wrapped in quotes whose closing quote is not escaped by a trailing backslash.
static
Unquote(string) string
Returns the literal value encoded by Escape(string, bool), or value unchanged when it is not a quoted token produced by this escaper.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin