Skip to content

Commit

Permalink
adding back path parameter per PR request
Browse files Browse the repository at this point in the history
  • Loading branch information
sagerb committed Jan 31, 2025
1 parent 7513606 commit cc4a526
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/publisher/commands/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import (
)

type UICmd struct {
Listen string `help:"Network address to listen on." placeholder:"HOST[:PORT]" default:"localhost:0"`
Path util.Path `help:"Sets the current working directory for the agent." arg:"" default:"."`
Listen string `help:"Network address to listen on." placeholder:"HOST[:PORT]" default:"localhost:0"`
}

func (cmd *UICmd) Run(args *cli_types.CommonArgs, ctx *cli_types.CLIContext) error {
Expand All @@ -25,8 +26,7 @@ func (cmd *UICmd) Run(args *cli_types.CommonArgs, ctx *cli_types.CLIContext) err
log := events.NewLoggerWithSSE(args.Verbose, emitter)
ctx.Logger.Info("created SSE logger")

path := util.NewPath(".", nil)
absPath, err := path.Abs()
absPath, err := cmd.Path.Abs()
if err != nil {
return err
}
Expand Down

0 comments on commit cc4a526

Please sign in to comment.