From 6f4c146ec08a25706d1fc464ff83496c2e7d324f Mon Sep 17 00:00:00 2001 From: Mik-TF Date: Thu, 10 Oct 2024 05:59:46 -0700 Subject: [PATCH] set help fn with windows specific --- flist.v | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/flist.v b/flist.v index 1cec0f5..c5669cb 100644 --- a/flist.v +++ b/flist.v @@ -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 :'))