added os specific info for help

This commit is contained in:
Mik-TF 2024-10-10 06:29:22 -07:00
parent 9d9b92c14d
commit a39c062339

10
flist.v
View File

@ -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')