You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
c.CmdClause.Flag("metadata-filter-envvars", "Redact specified environment variables from [scripts.env_vars] using comma-separated list").Action(c.metadataFilterEnvVars.Set).StringVar(&c.metadataFilterEnvVars.Value)
93
96
c.CmdClause.Flag("metadata-show", "Inspect the Wasm binary metadata").Action(c.metadataShow.Set).BoolVar(&c.metadataShow.Value)
c.CmdClause.Flag("experimental-enable-pushpin", "Enable experimental Pushpin support for local testing of Fanout and WebSockets").BoolVar(&c.enablePushpin)
99
+
c.CmdClause.Flag("pushpin-path", "The path to a user installed version of the Pushpin runner binary").StringVar(&c.pushpinRunnerBinPath)
100
+
c.CmdClause.Flag("pushpin-port", "The port to run the Pushpin runner on. Defaults to 7677.").Default("7677").StringVar(&c.pushpinProxyPort)
95
101
c.CmdClause.Flag("profile-guest", "Profile the Wasm guest under Viceroy (requires Viceroy 0.9.1 or higher). View profiles at https://profiler.firefox.com/.").BoolVar(&c.profileGuest)
96
102
c.CmdClause.Flag("profile-guest-dir", "The directory where the per-request profiles are saved to. Defaults to guest-profiles.").Action(c.profileGuestDir.Set).StringVar(&c.profileGuestDir.Value)
97
103
c.CmdClause.Flag("skip-build", "Skip the build step").BoolVar(&c.skipBuild)
text.Info(out, "Using user provided install of Pushpin runner via --pushpin-path flag: %s\n\n", c.pushpinRunnerBinPath)
616
+
}
617
+
returnfilepath.Abs(c.pushpinRunnerBinPath)
618
+
}
619
+
620
+
ifc.Globals.Verbose() {
621
+
text.Info(out, "No --pushpin-path provided, attempting to find 'pushpin' in your PATH...")
622
+
}
623
+
path, err:=exec.LookPath("pushpin")
624
+
iferr!=nil {
625
+
return"", fsterr.RemediationError{
626
+
Inner: fmt.Errorf("failed to find 'pushpin' in your $PATH"),
627
+
Remediation: "Pushpin support was enabled via --enable-experimental-pushpin, but the 'pushpin' binary could not be found in your $PATH. Please install Pushpin (see: https://pushpin.org/docs/install/) or provide a path to the binary using the --pushpin-path flag.",
628
+
}
629
+
}
630
+
631
+
ifc.Globals.Verbose() {
632
+
text.Info(out, "Found Pushpin runner via $PATH lookup: %s\n\n", path)
633
+
}
634
+
returnfilepath.Abs(path)
635
+
}
636
+
637
+
// BuildPushpinRoutes builds a slice of strings based on the backends
0 commit comments