Skip to content

Commit

Permalink
Merge pull request #43 from rodneyosodo/cleanup
Browse files Browse the repository at this point in the history
NOISSUE - Move Test Documentation To Docs Repository
  • Loading branch information
drasko authored Jan 9, 2025
2 parents 8a91d1c + 0b0bd06 commit 090fe85
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ updates:
interval: "weekly"
day: "monday"
timezone: "Europe/Paris"
groups:
go-dependency:
patterns:
- "*"
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ help:
@echo "Usage: make <target>"
@echo ""
@echo "Targets:"
@echo " build: build the binary"
@echo " install: install the binary"
@echo " all: build the binary"
@echo " clean: clean the build directory"
@echo " lint: run golangci-lint"
@echo " <service>: build the binary for the service i.e manager, proplet, cli"
@echo " all: build all binaries i.e manager, proplet, cli"
@echo " install: install the binary i.e copies to GOBIN"
@echo " clean: clean the build directory"
@echo " lint: run golangci-lint"
@echo " start-magistrala: start the magistrala docker compose"
@echo " stop-magistrala: stop the magistrala docker compose"
@echo " help: display this help message"
@echo " help: display this help message"
2 changes: 1 addition & 1 deletion propellerd/log.go → cli/log.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package propellerd
package cli

import (
"encoding/json"
Expand Down
2 changes: 1 addition & 1 deletion propellerd/tasks.go → cli/tasks.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package propellerd
package cli

import (
"github.com/absmach/propeller/pkg/sdk"
Expand Down
10 changes: 5 additions & 5 deletions cmd/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"log"

"github.com/absmach/propeller/cli"
"github.com/absmach/propeller/pkg/sdk"
"github.com/absmach/propeller/propellerd"
"github.com/spf13/cobra"
)

Expand All @@ -15,15 +15,15 @@ func main() {
Long: `Propeller CLI is a command line interface for interacting with Propeller components.`,
PersistentPreRun: func(_ *cobra.Command, _ []string) {
sdkConf := sdk.Config{
ManagerURL: propellerd.DefManagerURL,
TLSVerification: propellerd.DefTLSVerification,
ManagerURL: cli.DefManagerURL,
TLSVerification: cli.DefTLSVerification,
}
s := sdk.NewSDK(sdkConf)
propellerd.SetSDK(s)
cli.SetSDK(s)
},
}

tasksCmd := propellerd.NewTasksCmd()
tasksCmd := cli.NewTasksCmd()

rootCmd.AddCommand(tasksCmd)

Expand Down

0 comments on commit 090fe85

Please sign in to comment.