Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions plugins/zapier/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func New() schema.Plugin {
},
Executables: []schema.Executable{
ZapierCLI(),
ZapierPlatformCLI(),
},
}
}
11 changes: 10 additions & 1 deletion plugins/zapier/zapier.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,18 @@ import (
)

func ZapierCLI() schema.Executable {
return zapierExecutable("zapier")
}

// ZapierPlatformCLI covers zapier-platform-cli v19+, which no longer installs a `zapier` binary.
func ZapierPlatformCLI() schema.Executable {
return zapierExecutable("zapier-platform")
}

func zapierExecutable(command string) schema.Executable {
return schema.Executable{
Name: "Zapier CLI",
Runs: []string{"zapier"},
Runs: []string{command},
DocsURL: sdk.URL("https://platform.zapier.com/cli_docs/docs"),
NeedsAuth: needsauth.IfAll(
needsauth.NotForHelpOrVersion(),
Expand Down
Loading