diff options
author | Profpatsch <mail@profpatsch.de> | 2019-09-09 01:42:29 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2020-02-24 00:57:55 +0100 |
commit | 4518fe3ce66364a0dc86d989ab749bce6aa876c0 (patch) | |
tree | c58398e846b99967307d8501a7ea6f982b737cf7 /pkgs/profpatsch/dhallsh/Command | |
parent | 5f81c67c6d84d5194dbe0d9ec5dc48d932e8397c (diff) |
First working fish subcommand completion.
Diffstat (limited to 'pkgs/profpatsch/dhallsh/Command')
-rw-r--r-- | pkgs/profpatsch/dhallsh/Command/toList.dhall | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/profpatsch/dhallsh/Command/toList.dhall b/pkgs/profpatsch/dhallsh/Command/toList.dhall new file mode 100644 index 00000000..23605a3f --- /dev/null +++ b/pkgs/profpatsch/dhallsh/Command/toList.dhall @@ -0,0 +1,12 @@ +let Prelude = ../imports/Prelude.dhall + +let Command = ./type.dhall + +let toList + : ∀(a : Type) → (a → List Text) → Command a → List Text + = λ(a : Type) + → λ(f : a → List Text) + → λ(c : Command a) + → [ c.cmd ] # Prelude.List.concatMap a Text f c.args + +in toList |