cmd: dagger input edit -> dagger edit
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
325c843924
commit
5f849bb13e
@ -1,4 +1,4 @@
|
|||||||
package input
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
@ -19,7 +19,7 @@ import (
|
|||||||
|
|
||||||
var editCmd = &cobra.Command{
|
var editCmd = &cobra.Command{
|
||||||
Use: "edit",
|
Use: "edit",
|
||||||
Short: "Interactively edit the inputs of an environment",
|
Short: "Interactively edit an environment",
|
||||||
Args: cobra.MaximumNArgs(1),
|
Args: cobra.MaximumNArgs(1),
|
||||||
PreRun: func(cmd *cobra.Command, args []string) {
|
PreRun: func(cmd *cobra.Command, args []string) {
|
||||||
// Fix Viper bug for duplicate flags:
|
// Fix Viper bug for duplicate flags:
|
@ -20,7 +20,6 @@ var Cmd = &cobra.Command{
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
Cmd.AddCommand(
|
Cmd.AddCommand(
|
||||||
editCmd,
|
|
||||||
dirCmd,
|
dirCmd,
|
||||||
gitCmd,
|
gitCmd,
|
||||||
containerCmd,
|
containerCmd,
|
||||||
|
@ -40,6 +40,7 @@ func init() {
|
|||||||
queryCmd,
|
queryCmd,
|
||||||
upCmd,
|
upCmd,
|
||||||
downCmd,
|
downCmd,
|
||||||
|
editCmd,
|
||||||
historyCmd,
|
historyCmd,
|
||||||
loginCmd,
|
loginCmd,
|
||||||
logoutCmd,
|
logoutCmd,
|
||||||
|
@ -10,7 +10,9 @@ import (
|
|||||||
func TestLocalDirs(t *testing.T) {
|
func TestLocalDirs(t *testing.T) {
|
||||||
st := &state.State{
|
st := &state.State{
|
||||||
Path: "/tmp/source",
|
Path: "/tmp/source",
|
||||||
Plan: "/tmp/source/plan",
|
Plan: state.Plan{
|
||||||
|
Module: "/tmp/source/plan",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
require.NoError(t, st.SetInput("www.source", state.DirInput("/", []string{}, []string{})))
|
require.NoError(t, st.SetInput("www.source", state.DirInput("/", []string{}, []string{})))
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ func TestWorkspace(t *testing.T) {
|
|||||||
require.Equal(t, root, workspace.Path)
|
require.Equal(t, root, workspace.Path)
|
||||||
|
|
||||||
// Create
|
// Create
|
||||||
st, err := workspace.Create(ctx, "test")
|
st, err := workspace.Create(ctx, "test", "", "")
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Equal(t, "test", st.Name)
|
require.Equal(t, "test", st.Name)
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ func TestEncryption(t *testing.T) {
|
|||||||
workspace, err := Init(ctx, root)
|
workspace, err := Init(ctx, root)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
_, err = workspace.Create(ctx, "test")
|
_, err = workspace.Create(ctx, "test", "", "")
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
// Set a plaintext input, make sure it is not encrypted
|
// Set a plaintext input, make sure it is not encrypted
|
||||||
|
Reference in New Issue
Block a user