diff --git a/Makefile b/Makefile index 8427141..0eadbdb 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ README.md: - gomplate -f $@.tmpl --plugin 'filters=./get_filter_support_table,ffprobe=./get_ffprobe_commands_table' > $@ + gomplate -f $@.tmpl --plugin "filters=./get_filter_support_table,ffprobe=./get_ffprobe_commands_table,version=./nu_version" > $@ clean: - rm README.md + rm -f README.md .PHONY: clean diff --git a/README.md b/README.md index b0d621e..9fdc4ce 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,8 @@ 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 b83b4c0..6de976b 100644 --- a/README.md.tmpl +++ b/README.md.tmpl @@ -21,7 +21,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 {{ 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/nu_version b/nu_version new file mode 100755 index 0000000..b80abdd --- /dev/null +++ b/nu_version @@ -0,0 +1,3 @@ +#!/usr/bin/env nu + +nu -v