Skip to content

Commit

Permalink
Merge pull request #93 from upstash/DX-1099
Browse files Browse the repository at this point in the history
feat: add new help tex to cli
  • Loading branch information
CahidArda authored Jul 24, 2024
2 parents 360274d + 3bed065 commit 4006f62
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-tomatoes-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@upstash/react-cli": patch
---

added new help text to cli
11 changes: 9 additions & 2 deletions packages/react-cli/src/redis-cli.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,15 @@ export const RedisCli: React.FC<CliProps> = (props) => {
>
<ScrollArea.Root style={{ overflow: "hidden" }}>
<ScrollArea.Viewport className="upstash-cli-viewport">
<span style={{ color: "#00e9a3" }}>{props.welcome ?? "Welcome to Upstash CLI"}</span>
<span style={{ color: "#00e9a3" }}>
{props.welcome ?? (
<>
Welcome to Upstash CLI!
<br />
Execute Redis commands online (e.g. 'SET key value') type 'help' for more.
</>
)}
</span>
{results.map((r) => (
<Result key={r.time} result={r} />
))}
Expand All @@ -273,7 +281,6 @@ export const RedisCli: React.FC<CliProps> = (props) => {
resize: "none",
}}
ref={ref}
// rows={Math.max(stdin.split("\n").length, Math.ceil(stdin.length / 80), 1)}
value={stdin}
onChange={(e) => setStdin(e.currentTarget.value)}
onKeyDown={async (e) => {
Expand Down

0 comments on commit 4006f62

Please sign in to comment.