diff --git a/.gomplate.yml b/.gomplate.yml index 50f3701..8394d22 100644 --- a/.gomplate.yml +++ b/.gomplate.yml @@ -5,7 +5,8 @@ outputFiles: plugins: filters: ./get_filter_support_table ffprobe: ./get_ffprobe_commands_table - version: ./nu_version + nu_version: + cmd: ./bin/nu-version example: cmd: ./bin/run-example #args: [] diff --git a/README.md b/README.md index 75c7aec..79f2823 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,7 @@ Utility commands for working with ffmpeg in nushell. The `ffmpeg` and `ffprobe` commands are required to be installed and available in your path; they are not installed for you. -Currently only nushell version 0.89.0 - is supported. +Currently only nushell version 0.89.0 is supported. After that, clone this repository and add the following code to your scripts, or to your `config.nu` file: diff --git a/README.md.tmpl b/README.md.tmpl index 18c0e93..1e033bf 100644 --- a/README.md.tmpl +++ b/README.md.tmpl @@ -25,7 +25,7 @@ Utility commands for working with ffmpeg in nushell. The `ffmpeg` and `ffprobe` commands are required to be installed and available in your path; they are not installed for you. -Currently only nushell version {{ version }} is supported. +Currently only nushell version {{ nu_version }} is supported. After that, clone this repository and add the following code to your scripts, or to your `config.nu` file: diff --git a/bin/nu-version b/bin/nu-version new file mode 100755 index 0000000..cf7cddd --- /dev/null +++ b/bin/nu-version @@ -0,0 +1,3 @@ +#!/usr/bin/env nu + +print -n (nu -v | str trim) diff --git a/nu_version b/nu_version deleted file mode 100755 index b80abdd..0000000 --- a/nu_version +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env nu - -nu -v