parent
2e23d727d6
commit
3731835efc
@ -0,0 +1,11 @@ |
||||
--- a/create_manpage_completions.py
|
||||
+++ b/create_manpage_completions.py
|
||||
@@ -776,8 +776,6 @@ def parse_manpage_at_path(manpage_path, output_directory):
|
||||
|
||||
built_command_output.insert(0, "# " + CMDNAME)
|
||||
|
||||
- # Output the magic word Autogenerated so we can tell if we can overwrite this
|
||||
- built_command_output.insert(1, "# Autogenerated from man page " + manpage_path)
|
||||
# built_command_output.insert(2, "# using " + parser.__class__.__name__) # XXX MISATTRIBUTES THE CULPABILE PARSER! Was really using Type2 but reporting TypeDeroffManParser
|
||||
|
||||
for line in built_command_output:
|
@ -0,0 +1,21 @@ |
||||
import ./make-test.nix ({ pkgs, ... }: { |
||||
name = "fish"; |
||||
|
||||
machine = |
||||
{ pkgs, ... }: |
||||
|
||||
{ |
||||
programs.fish.enable = true; |
||||
environment.systemPackages = with pkgs; [ |
||||
coreutils |
||||
procps # kill collides with coreutils' to test https://github.com/NixOS/nixpkgs/issues/56432 |
||||
]; |
||||
}; |
||||
|
||||
testScript = |
||||
'' |
||||
$machine->waitForFile("/etc/fish/generated_completions/coreutils.fish"); |
||||
$machine->waitForFile("/etc/fish/generated_completions/kill.fish"); |
||||
$machine->succeed("fish -ic 'echo \$fish_complete_path' | grep -q '/share/fish/completions /etc/fish/generated_completions /root/.local/share/fish/generated_completions\$'"); |
||||
''; |
||||
}) |
Loading…
Reference in new issue