diff --git a/cmd/substation/main.go b/cmd/substation/main.go index acb4456d..61fc96ec 100644 --- a/cmd/substation/main.go +++ b/cmd/substation/main.go @@ -30,7 +30,8 @@ const ( }` // confDemo is a demo configuration for AWS CloudTrail. - confDemo = `local sub = std.extVar('sub'); + confDemo = `// Every config must import the Substation library. +local sub = std.extVar('sub'); { transforms: [ diff --git a/cmd/substation/playground.go b/cmd/substation/playground.go index eaa7cf46..77c58176 100644 --- a/cmd/substation/playground.go +++ b/cmd/substation/playground.go @@ -34,9 +34,9 @@ func init() { } var playgroundCmd = &cobra.Command{ - Use: "playground", + Use: "play", Short: "start playground", - Long: `'substation playground' starts a local HTTP server for testing Substation configurations.`, + Long: `'substation play' starts a local instance of the Substation playground.`, RunE: runPlayground, } @@ -124,7 +124,7 @@ func handleIndex(w http.ResponseWriter, r *http.Request) { // If shared data is present, don't include environment variables if sharedData == "" { - data.DefaultEnv = "# Add environment variables here, one per line\n# Example: KEY=VALUE" + data.DefaultEnv = "# Example: KEY=VALUE" } tmpl := template.Must(template.New("index").Parse(playgroundHTML)) diff --git a/cmd/substation/playground.tmpl b/cmd/substation/playground.tmpl index 0d78ae7a..c1e6e3f6 100644 --- a/cmd/substation/playground.tmpl +++ b/cmd/substation/playground.tmpl @@ -318,8 +318,7 @@

- Run your configuration, test it, or try a demo. - View examples + Run, test, or share a config. New to Substation? Try the demo to see how it works. Need inspiration? View more examples here.

@@ -330,7 +329,7 @@

Configuration

-

Configure the transformations to be applied to the input event.

+

Configure the transforms.

@@ -342,7 +341,7 @@ -

Paste the message data to be processed by Substation here.

+

Add message data.

@@ -353,7 +352,7 @@
-

The processed message data will appear here after running.

+

See the results.

@@ -366,7 +365,7 @@

Environment Variables

× -

Add environment variables here, one per line (KEY=VALUE). These will not be included when sharing.

+

Add environment variables, one per line (KEY=VALUE). These are not included when sharing the config.