Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup
  • Loading branch information
Emyrk committed Jun 15, 2022
commit 0e81573f038c153e1ec0141176d8dac70e9c257c
6 changes: 3 additions & 3 deletions cli/parameters.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package cli

import (
"github.com/coder/coder/cli/cliui"
"github.com/coder/coder/codersdk"
"github.com/jedib0t/go-pretty/v6/table"
"github.com/spf13/cobra"

"github.com/coder/coder/cli/cliui"
"github.com/coder/coder/codersdk"
)

func parameters() *cobra.Command {
Expand Down Expand Up @@ -33,7 +34,6 @@ func displayParameters(filterColumns []string, params ...codersdk.Parameter) str
Name: "name",
}})
for _, param := range params {
//fmt.Println(param, filterColumns)
tableWriter.AppendRow(table.Row{
param.ID.String(),
param.Scope,
Expand Down
5 changes: 3 additions & 2 deletions cli/parameterslist.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import (
"github.com/google/uuid"
"golang.org/x/xerrors"

"github.com/coder/coder/codersdk"
"github.com/spf13/cobra"

"github.com/coder/coder/codersdk"
)

func parameterList() *cobra.Command {
Expand Down Expand Up @@ -58,7 +59,7 @@ func parameterList() *cobra.Command {
})
}

params, err := client.Parameters(cmd.Context(), codersdk.ParameterScope(args[0]), scopeID)
params, err := client.Parameters(cmd.Context(), codersdk.ParameterScope(scope), scopeID)
if err != nil {
return xerrors.Errorf("fetch params: %w", err)
}
Expand Down