Skip to content

Commit

Permalink
apply gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
robertchoi80 committed Feb 13, 2023
1 parent 4e852ee commit eb76e6e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cmd/appserve_abort.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ limitations under the License.
package cmd

import (
"strings"
"errors"
"fmt"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"io"
"net/http"
"net/url"
"strings"
)

var appserveAbortCmd = &cobra.Command{
Expand All @@ -48,9 +48,9 @@ tks appserve abort <APP_ID>`,
/* Parse command line params */
appId := args[0]

// Prepare request body
// Prepare request body
data := url.Values{}
data.Set("abort", "true")
data.Set("abort", "true")

// Initialize http client
client := &http.Client{}
Expand Down
6 changes: 3 additions & 3 deletions cmd/appserve_promote.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ limitations under the License.
package cmd

import (
"strings"
"errors"
"fmt"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"io"
"net/http"
"net/url"
"strings"
)

var appservePromoteCmd = &cobra.Command{
Expand All @@ -48,9 +48,9 @@ tks appserve promote <APP_ID>`,
/* Parse command line params */
appId := args[0]

// Prepare request body
// Prepare request body
data := url.Values{}
data.Set("promote", "true")
data.Set("promote", "true")

// Initialize http client
client := &http.Client{}
Expand Down
2 changes: 2 additions & 0 deletions cmd/appserve_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ func printAppInfo(app appServeAppTaskCombined, long bool) error {
var m map[string]interface{}
json.Unmarshal(cBytes, &m)

// TODO: show fields in proper order manually
// or use some ordered-json library
fmt.Println("\n**************")
fmt.Println("* Basic Info *")
fmt.Println("**************")
Expand Down

0 comments on commit eb76e6e

Please sign in to comment.