mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-05 08:37:46 +00:00
Using def --env instead of def-env (#673)
This commit is contained in:
parent
9d02fb1ef8
commit
06d3095ab1
15 changed files with 28 additions and 28 deletions
|
@ -12,7 +12,7 @@ use get-weather.nu get_weather
|
|||
$env.WEATHER = (get_weather | upsert last_run_time { (date now | format date '%Y-%m-%d %H:%M:%S %z')})
|
||||
|
||||
#command to run at interval
|
||||
def-env timed_weather_run [
|
||||
def --env timed_weather_run [
|
||||
--interval(-i): duration # The interval duration
|
||||
] {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue