-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli-utils): Add missing
--force-ts-format
option to `generate-o…
…utput`
- Loading branch information
Showing
5 changed files
with
43 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@gql.tada/cli-utils": patch | ||
--- | ||
|
||
Add missing argument to `generate-output` command to force output the `.ts` format instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
import * as t from '../../term'; | ||
|
||
import { hint, code } from '../shared/logger'; | ||
export * from '../shared/logger'; | ||
|
||
export function summary() { | ||
return t.text([ | ||
export function summary(showHint?: boolean) { | ||
let out = t.text([ | ||
t.cmd(t.CSI.Style, t.Style.BrightGreen), | ||
`${t.Icons.Tick} Introspection output was generated successfully\n`, | ||
]); | ||
if (showHint) { | ||
out += hint( | ||
`The pipe output was generated in the ${code('.d.ts')} format.\n` + | ||
`For the ${code('.ts')} format, pass the ${code('--force-ts-format')} argument.\n` | ||
); | ||
} | ||
return out; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters