Re: [go-nuts] Having trouble in running a go-git api example

2022-10-13 Thread TECHAX
Thank you, lets say I have cloned a different rep and locally committed a file to that repo's default branch, now wat to push that. So I should run *./push url_of_that_repo, *but it is not working. On Thu, Oct 13, 2022 at 1:00 PM go je wrote: > if you mean os.Args[1], you might want to build it

Re: [go-nuts] Using golang variable in bash script Command

2022-09-19 Thread TECHAX
Thank you for the response. On Mon, Sep 19, 2022 at 8:26 PM Tamás Gulácsi wrote: > No, please, no! > > Do NOT use bash with string interpolation if possible! > Call find directly: > *cmd, err := exec.Command("find", ".", "-name", search)* > princ...@gmail.com a következőt írta (2022. szeptember

Re: [go-nuts] How to run a java file using go script.

2022-08-04 Thread TECHAX
t()if err != nil { fmt.Println(err)}fmt.Println(string(cmd))* Or Is there any way to add multiple path just we like do with export such as: *export PATH=* */home/sdk/jdk-11build/jdk-11.0.16/bin:* */home/temp/jtreg/bin:$PATH* On Thu, Aug 4, 2022 at 11:45 AM Thomas Faughnan wrote: > On Thu Aug 4

Re: [go-nuts] How to run a java file using go script.

2022-08-03 Thread TECHAX
On Thu, Aug 4, 2022 at 1:45 AM Kurtis Rader wrote: > On Wed, Aug 3, 2022 at 11:38 AM TECHAX wrote: > >> I tried this for setting Java, but not working. >> >> CMD:= exec.Command("bash","-c","export PATH=/home/user/jdk8/bin") >> >> C

Re: [go-nuts] How to run a java file using go script.

2022-08-03 Thread TECHAX
I tried this for setting Java, but not working. CMD:= exec.Command("bash","-c","export PATH=/home/user/jdk8/bin") Can you please help me with this? On Wed, 3 Aug, 2022, 7:48 pm Eli Bendersky, wrote: > You should be able to use the os/exec package (https://pkg.go.dev/os/exec) > to invoke exter