mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 00:47:30 +00:00
36 lines
No EOL
1.3 KiB
Fish
36 lines
No EOL
1.3 KiB
Fish
function __attributes_generate_args --description 'Function to generate args'
|
|
if ! __fish_seen_subcommand_from disk volume
|
|
echo -e 'disk\tDisplay, set, or clear the attributes of a disk
|
|
volume\tDisplay, set, or clear the attributes of a volume'
|
|
return
|
|
end
|
|
|
|
if __fish_seen_subcommand_from disk
|
|
if ! __fish_seen_subcommand_from set clear
|
|
echo -e 'set\tSet the specified attribute of the disk with focus
|
|
clear\tClear the specified attribute of the disk with focus'
|
|
return
|
|
end
|
|
|
|
echo -e 'readonly\tSpecify that the disk is read-only
|
|
noerr\tWhen an error is encountered, DiskPart continues to process commands'
|
|
return
|
|
end
|
|
|
|
if __fish_seen_subcommand_from volume
|
|
if ! __fish_seen_subcommand_from set clear
|
|
echo -e 'set\tSet the specified attribute of the volume with focus
|
|
clear\tClear the specified attribute of the volume with focus'
|
|
return
|
|
end
|
|
|
|
echo -e 'readonly\tSpecify that the volume is read-only
|
|
readonly\tSpecify that the volume is hidden
|
|
nodefaultdriveletter\tSpecify that the volume does not receive a drive letter by default
|
|
shadowcopy\tSpecify that the volume is a shadow copy volume
|
|
noerr\tWhen an error is encountered, DiskPart continues to process commands'
|
|
return
|
|
end
|
|
end
|
|
|
|
complete --command attributes --no-files --arguments '(__attributes_generate_args)' |