CliWriter.WriteLink Method
Definition
- Namespace
- DotMake.CommandLine
- Assembly
- DotMake.CommandLine.dll
WriteLink(CliLink, CliStyle, string)
Writes a string as link with URL with the specified style (color and text decoration), to the terminal.
public CliWriter WriteLink(CliLink link, CliStyle style, string value)
Parameters
linkCliLinkThe link with URL.
styleCliStyleThe style (color and text decoration).
valuestringThe string to write.
Returns
- CliWriter
The same instance so that multiple calls can be chained.
WriteLink(CliLink, CliStyle, string, params object[])
Writes a formatted string as link with URL with the specified style (color and text decoration), to the terminal.
public CliWriter WriteLink(CliLink link, CliStyle style, string format, params object[] arg)
Parameters
linkCliLinkThe link with URL.
styleCliStyleThe style (color and text decoration).
formatstringA composite format string.
argobject[]An object array that contains zero or more objects to format and write.
Returns
- CliWriter
The same instance so that multiple calls can be chained.
WriteLink(CliLink, string)
Writes a string as link with URL, to the terminal.
public CliWriter WriteLink(CliLink link, string value)
Parameters
Returns
- CliWriter
The same instance so that multiple calls can be chained.
WriteLink(CliLink, string, params object[])
Writes a formatted string as link with URL, to the terminal.
public CliWriter WriteLink(CliLink link, string format, params object[] arg)
Parameters
linkCliLinkThe link with URL.
formatstringA composite format string.
argobject[]An object array that contains zero or more objects to format and write.
Returns
- CliWriter
The same instance so that multiple calls can be chained.