query
On this page

generateOptparseApplicativeCompletion

pkgs.haskell.lib.generateOptparseApplicativeCompletion

Docs pulled from | This Revision | about 2 hours ago


Modify a Haskell package to add shell completion scripts for the given executable produced by it. These completion scripts will be picked up automatically if the resulting derivation is installed, e.g. by nix-env -i.

Invocation: generateOptparseApplicativeCompletions command pkg

command: name of an executable pkg: Haskell package that builds the executables


Noogle detected

Implementation

The following is the current implementation of this function.

generateOptparseApplicativeCompletion = command: pkg:
    lib.warnIf (lib.oldestSupportedReleaseIsAtLeast 2211) "haskellLib.generateOptparseApplicativeCompletion is deprecated in favor of haskellPackages.generateOptparseApplicativeCompletions (plural!). Please change ${pkg.name} to use the latter and make sure it uses its matching haskell.packages set!"
      (__generateOptparseApplicativeCompletion command pkg);