Skip to content

Commit

Permalink
test cdeo for cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
vpidatala94 committed Feb 21, 2025
1 parent 4c3d745 commit 514a557
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ var (
RunE: func(cmd *cobra.Command, args []string) error {
// Do Stuff Here
fmt.Println("Starting Retina Agent")
wd, err := os.Getwd()
if err != nil {
fmt.Printf("Error getting current directory: %v\n", err)
} else {
fmt.Printf("Current Working Directory: %s\n", wd)
}
d := legacy.NewDaemon(metricsAddr, probeAddr, cfgFile, enableLeaderElection)
if err := d.Start(); err != nil {
return fmt.Errorf("starting daemon: %w", err)
Expand Down

0 comments on commit 514a557

Please sign in to comment.