Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do you build a program that can be executed through terminal commands?

I’ve been learning Golang recently, and I’ve decided to re-create the CLI tool "Autojump" with it. But I’ve never created a terminal tool that can be executed with a keyword (For this example, something like autojump [file_name]. How do you create a tool like this? Is it language specific? Thanks.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You want to parse command line arguments: https://golangdocs.com/command-line-arguments-in-golang

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading