space-cloud icon indicating copy to clipboard operation
space-cloud copied to clipboard

Space cli should ask whether to put the binary in path

Open sharadregoti opened this issue 5 years ago • 4 comments

The problem faced currently?

Most users access space-CLI binary by going to the downloaded path & then run commands. It would be nice if space-cli gives a promt of adding it to the path.

How can we solve it?

If you want this feature to be implemented, give it a thumbs up reaction, so that we can determine which features are important to you. 👍

sharadregoti avatar Jun 11 '20 18:06 sharadregoti

@YourTechBud what should we do about this issue ?

sharadregoti avatar Jun 19 '20 15:06 sharadregoti

Rather than prompting the user, I think it would be nice to have a tiny installer script that does it. Something like a one-liner: curl <url>/get_spacecloud.sh | sh that could download and move the binary to /use/local/bin when executed.

Also, the script could prompt the user if they want to add it to the path or just leave it in the current folder rather than implementing this logic in the binary. This approach just seems a bit cleaner to me.

cc: @sharadregoti @YourTechBud

prakashmishra1598 avatar Jul 06 '20 16:07 prakashmishra1598

I agree.

YourTechBud avatar Jul 06 '20 16:07 YourTechBud

yes, we should write a script for this. The script should also enable auto completion for cli

sharadregoti avatar Jul 06 '20 16:07 sharadregoti