-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38f6f5a
commit be0c317
Showing
3 changed files
with
108 additions
and
39 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,22 @@ | ||
import React from 'react' | ||
import { ErrorBox, FixBox } from './ErrorBox' | ||
import { Color, Box } from 'ink' | ||
|
||
const EmptyDirError: React.FC = () => ( | ||
<Box textWrap="wrap" flexDirection="column"> | ||
<ErrorBox> | ||
<Box flexDirection="column"> | ||
<Color>Starter kits can only be selected in empty directories </Color> | ||
<Color> | ||
or by providing a project name to the <Color bold>prisma2 init</Color> command | ||
</Color> | ||
</Box> | ||
</ErrorBox> | ||
<FixBox> | ||
<Color>Run the command in an empty directory or provide a project name, e.g.: </Color> | ||
<Color bold>prisma2 init hello-world</Color> | ||
</FixBox> | ||
</Box> | ||
) | ||
|
||
export default EmptyDirError |
64 changes: 46 additions & 18 deletions
64
cli/introspection/src/prompt/screens/Step3LanguageSelection.tsx
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