added os specific info for help
This commit is contained in:
parent
9d9b92c14d
commit
a39c062339
10
flist.v
10
flist.v
@ -16,6 +16,13 @@ const docker_cmd = $if windows {
|
|||||||
} $else {
|
} $else {
|
||||||
'sudo docker'
|
'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 {
|
struct FlistItem {
|
||||||
name string
|
name string
|
||||||
@ -136,7 +143,7 @@ fn install() {
|
|||||||
add_path_windows()
|
add_path_windows()
|
||||||
}
|
}
|
||||||
success_message('Flist CLI has been installed to ' + binary_location)
|
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 {
|
} else {
|
||||||
error_message('Cannot find the executable file')
|
error_message('Cannot find the executable file')
|
||||||
exit(1)
|
exit(1)
|
||||||
@ -498,6 +505,7 @@ fn help() {
|
|||||||
println(create_box([welcome_msg], 2))
|
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('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:'))
|
println(term.bold('Available commands:'))
|
||||||
$if !windows {
|
$if !windows {
|
||||||
println(term.cyan(' install ') + '- Install the Flist CLI')
|
println(term.cyan(' install ') + '- Install the Flist CLI')
|
||||||
|
Loading…
Reference in New Issue
Block a user