Skip to content

Commit

Permalink
add --path option to subscribe command
Browse files Browse the repository at this point in the history
  • Loading branch information
jrangelramos committed Jan 10, 2024
1 parent 4daa885 commit 3358211
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ and an 'extension' attribute for the value 'my-extension-value'.

cmd.Flags().StringP("source", "s", "default", "The source, like a Knative Broker")

addPathFlag(cmd)

return cmd
}

Expand All @@ -48,7 +50,7 @@ func runSubscribe(cmd *cobra.Command, args []string) (err error) {
)
cfg = newSubscribeConfig(cmd)

if f, err = fn.NewFunction(""); err != nil {
if f, err = fn.NewFunction(effectivePath()); err != nil {
return
}
if !f.Initialized() {
Expand Down

0 comments on commit 3358211

Please sign in to comment.