ArgumentsBuilderExtension Class

Summary

Arguments builder
Assembly
Cake.ProtobufTools.dll
Namespace
Cake.ProtobufTools
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["ArgumentsBuilderExtension"] class Type type-node

Syntax

public static class ArgumentsBuilderExtension

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Methods

Name Value Summary
AppendAll<TSettings>(ProcessArgumentBuilder, TSettings, string[]) void
Appends all arguments from settings and arguments.
static
AppendArguments<TSettings>(ProcessArgumentBuilder, TSettings, bool) void
Appends pre or post command arguments.
static
ConvertTimeSpan(TimeSpan) string
static
GetArgumentFromAutoProperty(AutoPropertyAttribute, PropertyInfo, object) string
Uses format specified in attribute to format the argument.
static
GetArgumentFromBoolProperty(PropertyInfo, Nullable<bool>) string
static
GetArgumentFromDictionaryProperty(PropertyInfo, Dictionary<string, string>) IEnumerable<string>
static
GetArgumentFromNullableBoolProperty(PropertyInfo, Nullable<bool>, ParameterAttribute) string
static
GetArgumentFromNullableInt64Property(PropertyInfo, Nullable<long>) string
static
GetArgumentFromNullableIntProperty(PropertyInfo, Nullable<int>) string
static
GetArgumentFromNullableTimeSpanProperty(PropertyInfo, Nullable<TimeSpan>) string
static
GetArgumentFromNullableUInt16Property(PropertyInfo, Nullable<ushort>) string
static
GetArgumentFromNullableUInt64Property(PropertyInfo, Nullable<ulong>) string
static
GetArgumentFromProperty<TSettings>(PropertyInfo, TSettings, bool) IEnumerable<string>
Gets and processes property value from settings.
static
GetArgumentFromStringArrayProperty(PropertyInfo, string[]) IEnumerable<string>
static
GetArgumentFromStringProperty(PropertyInfo, string, ParameterAttribute) string
static
GetAutoPropertyAttributeOrNull(PropertyInfo) AutoPropertyAttribute
Retrieve AutoPropertyAttribute from property or null if there isn't one.
static
GetParameterAttributeOrNull(PropertyInfo) ParameterAttribute
Retrieve ParameterAttribute from property or null if there isn't one.
static
GetPropertyName(string) string
Converts property name to protobuf-tools arguments format
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin