Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions custom-completions/television/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# `television` custom completions

This script provides custom completions for `television`.
It can be used by importing its exported commands via:

```
use path/to/television/television-completions.nu *
```

With `path/to/` being either the relative path of the file to your current working directory or its absolute path.

19 changes: 19 additions & 0 deletions custom-completions/television/television-completions.nu
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
def "nu-complete tv channels" [] {
^tv list-channels
| lines
}

export extern "tv" [
channel: string@"nu-complete tv channels"
]

# Lists the available channels
export extern "tv list-channels" []
# Initializes shell completion ("tv init zsh")
export extern "tv init" []
# Generates standard shell tab-completion scripts for tv's various subcommands
export extern "tv completions" []
# Downloads the latest collection of channel prototypes from github and saves them to the local configuration directory
export extern "tv update-channels" []
# Print this message or the help of the given subcommand(s)
export extern "tv help" []
Loading