Skip to content

Commit cd45242

Browse files
authored
Merge pull request #7 from yoanbernabeu/v0.1.5
V0.1.5 - Fix JPS URL
2 parents a16e385 + f8e3d03 commit cd45242

26 files changed

+31
-28
lines changed

cmd/jelastic_marketplace_jps.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ package cmd
22

33
import (
44
"fmt"
5+
encode "net/url"
56

67
"github.com/spf13/cobra"
78
)
89

910
func init() {
1011
rootCmd.AddCommand(installCmd)
11-
installCmd.Flags().String("jps", "", "A JPS manifest is required")
12+
installCmd.Flags().String("jps", "", "A JPS manifest URL is required")
1213
installCmd.Flags().String("envName", "", "An environment name is required")
1314
installCmd.Flags().String("envGroups", "", "An environment groups is optional")
1415
installCmd.MarkFlagRequired("jps")
@@ -30,7 +31,9 @@ var installCmd = &cobra.Command{
3031
envName, _ := cmd.Flags().GetString("envName")
3132
envGroups, _ := cmd.Flags().GetString("envGroups")
3233

33-
finalUrl := url + "/marketplace/jps/rest/install" + "?session=" + token + "&envName=" + envName + "&jps=" + jps + "&envGroups=" + envGroups
34+
urlEncodedJps := encode.QueryEscape(jps)
35+
36+
finalUrl := url + "/marketplace/jps/rest/install" + "?session=" + token + "&envName=" + envName + "&jps=" + urlEncodedJps + "&envGroups=" + envGroups
3437

3538
response := makeRequest(finalUrl, "POST", "")
3639
fmt.Println(response)

docs/documentation/GoJelastic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ An Alternative and not official CLI for Jelastic
3737
* [GoJelastic startEnv](GoJelastic_startEnv.md) - Start one environment
3838
* [GoJelastic stopEnv](GoJelastic_stopEnv.md) - Stop one environment
3939

40-
###### Auto generated by spf13/cobra on 16-Jan-2023
40+
###### Auto generated by spf13/cobra on 17-Jan-2023

docs/documentation/GoJelastic_completion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ See each sub-command's help for details on how to use the generated script.
2929
* [GoJelastic completion powershell](GoJelastic_completion_powershell.md) - Generate the autocompletion script for powershell
3030
* [GoJelastic completion zsh](GoJelastic_completion_zsh.md) - Generate the autocompletion script for zsh
3131

32-
##### Auto generated by spf13/cobra on 16-Jan-2023
32+
##### Auto generated by spf13/cobra on 17-Jan-2023

docs/documentation/GoJelastic_completion_bash.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ GoJelastic completion bash
4848

4949
* [GoJelastic completion](GoJelastic_completion.md) - Generate the autocompletion script for the specified shell
5050

51-
##### Auto generated by spf13/cobra on 16-Jan-2023
51+
##### Auto generated by spf13/cobra on 17-Jan-2023

docs/documentation/GoJelastic_completion_fish.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ GoJelastic completion fish [flags]
3939

4040
* [GoJelastic completion](GoJelastic_completion.md) - Generate the autocompletion script for the specified shell
4141

42-
##### Auto generated by spf13/cobra on 16-Jan-2023
42+
##### Auto generated by spf13/cobra on 17-Jan-2023

docs/documentation/GoJelastic_completion_powershell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ GoJelastic completion powershell [flags]
3636

3737
* [GoJelastic completion](GoJelastic_completion.md) - Generate the autocompletion script for the specified shell
3838

39-
##### Auto generated by spf13/cobra on 16-Jan-2023
39+
##### Auto generated by spf13/cobra on 17-Jan-2023

docs/documentation/GoJelastic_completion_zsh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ GoJelastic completion zsh [flags]
5050

5151
* [GoJelastic completion](GoJelastic_completion.md) - Generate the autocompletion script for the specified shell
5252

53-
##### Auto generated by spf13/cobra on 16-Jan-2023
53+
##### Auto generated by spf13/cobra on 17-Jan-2023

docs/documentation/GoJelastic_configure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ GoJelastic configure --token=token --url=url
2828

2929
* [GoJelastic](GoJelastic.md) - An Alternative CLI for Jelastic
3030

31-
##### Auto generated by spf13/cobra on 16-Jan-2023
31+
##### Auto generated by spf13/cobra on 17-Jan-2023

docs/documentation/GoJelastic_documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ GoJelastic documentation
3333

3434
* [GoJelastic](GoJelastic.md) - An Alternative CLI for Jelastic
3535

36-
##### Auto generated by spf13/cobra on 16-Jan-2023
36+
##### Auto generated by spf13/cobra on 17-Jan-2023

docs/documentation/GoJelastic_getAccount.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ GoJelastic billing/account getAccount --token=token --url=url --appid=appid
3434

3535
* [GoJelastic](GoJelastic.md) - An Alternative CLI for Jelastic
3636

37-
##### Auto generated by spf13/cobra on 16-Jan-2023
37+
##### Auto generated by spf13/cobra on 17-Jan-2023

0 commit comments

Comments
 (0)