set help fn with windows specific

This commit is contained in:
Mik-TF 2024-10-10 05:59:46 -07:00
parent 3eb53a4b3b
commit 6f4c146ec0

12
flist.v
View File

@ -494,8 +494,10 @@ fn help() {
println('This tool turns Dockerfiles and Docker images directly into Flists on the TF Flist Hub, passing by the Docker Hub.\n')
println(term.bold('Available commands:'))
println(term.cyan(' install ') + '- Install the Flist CLI')
println(term.cyan(' uninstall ') + '- Uninstall the Flist CLI')
$if !windows {
println(term.cyan(' install ') + '- Install the Flist CLI')
println(term.cyan(' uninstall ') + '- Uninstall the Flist CLI')
}
println(term.cyan(' login ') + '- Log in to Docker Hub and save the Flist Hub token')
println(term.cyan(' logout ') + '- Log out of Docker Hub and remove the Flist Hub token')
println(term.cyan(' push ') +
@ -506,8 +508,10 @@ fn help() {
println(term.cyan(' ls url ') + '- List all Flists of the current user with full URLs')
println(term.cyan(' help ') + '- Display this help message\n')
println(term.bold('Usage:'))
println(term.yellow(' sudo ./flist install'))
println(term.yellow(' sudo flist uninstall'))
$if !windows {
println(term.yellow(' sudo ./flist install'))
println(term.yellow(' sudo flist uninstall'))
}
println(term.yellow(' flist login'))
println(term.yellow(' flist logout'))
println(term.yellow(' flist push <image>:<tag>'))