Class TigerCliFileSaveAttribute
Marks a string command option as an output-file path that uses the inline file picker when
TigerCli prompts for a missing value.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class TigerCliFileSaveAttribute : Attribute
- Inheritance
-
TigerCliFileSaveAttribute
- Inherited Members
Remarks
The selected value remains one string path. Its parent directory must already exist. Existing
files are governed by Overwrite and, when configured, OverwriteWhenOption.
A file-save option is treated as a required path even when
Required is false.
Properties
DefaultExtension
Gets or sets the extension appended when the accepted file name has no extension. A leading
dot is optional. Null or whitespace disables extension completion.
public string? DefaultExtension { get; set; }
Property Value
DefaultFileName
Gets or sets the file name used to seed an otherwise empty interactive picker.
public string? DefaultFileName { get; set; }
Property Value
Filter
Gets or sets an optional filesystem search pattern, such as
*.json, used to filter the
files shown by the picker. It does not restrict a path typed or supplied directly.public string? Filter { get; set; }
Property Value
Overwrite
Gets or sets the policy applied when the resolved path already exists.
public TigerCliFileOverwrite Overwrite { get; set; }
Property Value
OverwriteWhenOption
Gets or sets the name of a bool or nullable bool property on the
same settings type. When its bound value is true, overwrite is allowed without rejection or
confirmation. False and null leave Overwrite in effect.
public string? OverwriteWhenOption { get; set; }