I am a beginner in GoLang. I work on Cloud Foundry and hence, want to know how can I include “cf cli” commands in golang program.
What is this command? Can you provide a linkt to a description and documentation?
Something like: cf login, cf set-org-users, cf orgs, cf spaces:
Here is a reference:
You can use os/exec
to run programs.
Thanks Nathan. If you don’t mind, can you please give some example?
Take a look at exec package - os/exec - Go Packages
1 Like
Thanks … I saw that before but was wondering if it will hold good for CF CLI commands as well.
It is a way to run any other program.
Okay. Thanks Guys, I will have a look and explore.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.