installTabCompletion method
@Throwing(ArgumentError) @Throwing(TouchException)
Implementation
@override
void installTabCompletion({bool quiet = false}) {
if (!isCompletionInstalled) {
// Add cli completion
/// -o nospace - after directory names
const command = "complete -o nospace -C 'dcli_complete' dcli";
final startFile = pathToStartScript;
if (!exists(startFile)) {
touch(startFile, create: true);
}
startFile.append(command);
if (!quiet) {
print(
'dcli tab completion installed. '
'Restart your terminal to activate it.',
);
}
}
}