1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 22:57:46 +00:00

rename date format to format date (#571)

This commit is contained in:
Antoine Stevan 2023-08-04 16:08:10 +02:00 committed by GitHub
parent 1d8457fa9d
commit be47e43db6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 37 additions and 37 deletions

View file

@ -334,7 +334,7 @@ export def container-create [
$debug $appimage $netadmin $clip
$mnt $vols $workdir $cache
] | flatten)
let name = $"($img | split row '/' | last | str replace ':' '-')_(date now | date format %m%d%H%M)"
let name = $"($img | split row '/' | last | str replace ':' '-')_(date now | format date %m%d%H%M)"
if $dry_run {
echo $"docker ($ns | str join ' ') run --name ($name) ($args|str join ' ') ($img) ($cmd | flatten)"
} else {