Flist CLI Updated for Linux, MacOS, Windows #7

Merged
mik-tf merged 16 commits from development_mac_2 into main 2024-10-11 04:50:59 +00:00
Showing only changes of commit 6f4c146ec0 - Show all commits

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