Skip to content

Commit 4b238bf

Browse files
fix(firstMile/CLI): better formatted output instead of a raw one (#5576)
1 parent e45fcd1 commit 4b238bf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/homepageExperience/components/steps/cli/ExecuteAggregateQuery.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export const ExecuteAggregateQuery = (props: OwnProps) => {
3434
|> filter(fn: (r) => r.measurement == "temperature")
3535
|> mean()`
3636

37-
const codeSnippetMac = `influx query 'from(bucket:"${bucketName}") |> range(start:-30m) |> mean()' --raw`
38-
const codeSnippetWindows = `.\\influx query 'from(bucket:\\"${bucketName}\\") |> range(start:-30m) |> mean()' --raw`
37+
const codeSnippetMac = `influx query 'from(bucket:"${bucketName}") |> range(start:-30m) |> mean()'`
38+
const codeSnippetWindows = `.\\influx query 'from(bucket:\\"${bucketName}\\") |> range(start:-30m) |> mean()'`
3939

4040
useEffect(() => {
4141
const fireKeyboardCopyEvent = event => {

src/homepageExperience/components/steps/cli/ExecuteQuery.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ type OwnProps = {
2727
export const ExecuteQuery = (props: OwnProps) => {
2828
const {bucket} = props
2929
const bucketName = bucket === DEFAULT_BUCKET ? 'sample-bucket' : bucket
30-
const queryMac = `influx query 'from(bucket:"${bucketName}") |> range(start:-30m)' --raw`
31-
const queryWindows = `.\\influx query 'from(bucket:\\"${bucketName}\\") |> range(start:-30m)' --raw`
30+
const queryMac = `influx query 'from(bucket:"${bucketName}") |> range(start:-30m)'`
31+
const queryWindows = `.\\influx query 'from(bucket:\\"${bucketName}\\") |> range(start:-30m)'`
3232

3333
const fluxExample = `from(bucket: “weather-data”)
3434
|> range(start: -10m)

0 commit comments

Comments
 (0)