From a39c06233924c29c3617f96a97e4435bb8905e35 Mon Sep 17 00:00:00 2001 From: Mik-TF Date: Thu, 10 Oct 2024 06:29:22 -0700 Subject: [PATCH] added os specific info for help --- flist.v | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/flist.v b/flist.v index 72f8c3e..5c80d18 100644 --- a/flist.v +++ b/flist.v @@ -16,6 +16,13 @@ const docker_cmd = $if windows { } $else { 'sudo docker' } +const info_msg = $if windows { + 'Note: Make sure to use an admin PowerShell. Docker Desktop must be running to use the push function.\n' +} $else $if linux { + 'Note: Docker Engine must be running to use the push function.\n' +} $else $if macos { + 'Note: Docker desktop must be running to use the push function.\n' +} struct FlistItem { name string @@ -136,7 +143,7 @@ fn install() { add_path_windows() } success_message('Flist CLI has been installed to ' + binary_location) - info_message("You can now use it by running 'flist help'") + info_message("Run 'flist help' to see all commands.") } else { error_message('Cannot find the executable file') exit(1) @@ -498,6 +505,7 @@ fn help() { println(create_box([welcome_msg], 2)) println('This tool turns Dockerfiles and Docker images directly into Flists on the TF Flist Hub, passing by the Docker Hub.\n') + println(term.cyan(info_msg)) println(term.bold('Available commands:')) $if !windows { println(term.cyan(' install ') + '- Install the Flist CLI')