createBashCompletionScript

Creates bash completion script.

Creates completion script for specified program, returning the script contents. You need to create it once, and save the script in directory like /etc/bash_completion.d/ during installation.

string
createBashCompletionScript

Return Value

Type: string

Generated completion script contents.

Examples

1 import std.file : write;
2 import std.string : format;
3 import commandr;
4 
5 auto prog = new Program("test");
6 std.file.write("%s.bash".format(prog.binaryName), createBashCompletionScript(prog));

Meta