Skip to content

Commit

Permalink
activate plugin on first upload
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Apr 26, 2024
1 parent 8478ae8 commit 3b96c2f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require (
github.com/olekukonko/ts v0.0.0-20171002115256-78ecb04241c0
github.com/pkg/errors v0.9.1
github.com/pquerna/otp v1.4.0
github.com/reubenmiller/go-c8y v0.15.9
github.com/reubenmiller/go-c8y v0.15.10
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1
github.com/sergi/go-diff v1.3.1 // indirect
github.com/sethvargo/go-password v0.2.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pquerna/otp v1.4.0 h1:wZvl1TIVxKRThZIBiwOOHOGP/1+nZyWBil9Y2XNEDzg=
github.com/pquerna/otp v1.4.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg=
github.com/reubenmiller/go-c8y v0.15.9 h1:IcsJq3QODhRzEq4VrFqm4H1CApRnjNtIHFDRlCtmXm0=
github.com/reubenmiller/go-c8y v0.15.9/go.mod h1:5F2Z5V0A1dkaSva48iVxLUuDE866rvSe8zi3fAPxZ6Y=
github.com/reubenmiller/go-c8y v0.15.10 h1:5ur5Fvt9Sab73fnIAPnE//GNax2HZvVPZ34tnncaa/0=
github.com/reubenmiller/go-c8y v0.15.10/go.mod h1:5F2Z5V0A1dkaSva48iVxLUuDE866rvSe8zi3fAPxZ6Y=
github.com/reubenmiller/gojsonq/v2 v2.0.0-20221119213524-0fd921ac20a3 h1:v8Q77ObTxkm0Wj9iAjcc0VMLxqEzKIdAnaTNPzSiw8Q=
github.com/reubenmiller/gojsonq/v2 v2.0.0-20221119213524-0fd921ac20a3/go.mod h1:QidmUT4ebNVwyjKXAQgx9VFHxpOxBKWs32EEXaXnEfE=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
Expand Down
3 changes: 3 additions & 0 deletions pkg/cmd/ui/plugins/create/create.manual.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ func (n *CmdCreate) RunE(cmd *cobra.Command, args []string) error {
Tags: n.tags,
},
})
if err != nil {
return err
}
n.factory.IOStreams.WaitForProgressIndicator()
commonOptions.ResultProperty = "-"
_, err = handler.ProcessResponse(response, err, nil, commonOptions)
Expand Down
2 changes: 1 addition & 1 deletion tests/manual/ui/plugins/crud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ c8y ui plugins create --file "$VERSION1_URL" --name "$NAME"
echo "Creating plugin from file"
PLUGIN_FILE="${TEMP_DIR}/${NAME}.zip"
wget -O "$PLUGIN_FILE" "$VERSION2_URL"
c8y ui plugins create --file "$PLUGIN_FILE" --tags latest
c8y ui plugins create --file "$PLUGIN_FILE" --tags latest -v

echo "List plugins"
[ -n "$(c8y ui plugins list)" ]
Expand Down

0 comments on commit 3b96c2f

Please sign in to comment.