Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: orweis <[email protected]>
  • Loading branch information
orweis committed Oct 28, 2024
1 parent ece0578 commit 24567bf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions source/commands/opa/policy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Spinner from 'ink-spinner';
import { keyAccountOption } from '../../options/keychain.js';
import { inspect } from 'util';
import { loadAuthToken } from '../../lib/auth.js';
import { TextInput, UnorderedList, Select } from '@inkjs/ui';
import { TextInput, Select } from '@inkjs/ui';
import Fuse from 'fuse.js';

export const options = zod.object({
Expand Down Expand Up @@ -124,7 +124,13 @@ export default function List({ options }: Props) {
<Box>
<Text color="red">Request failed: {JSON.stringify(error)}</Text>
<Newline />
<Text>{JSON.stringify(res)}</Text>
<Text>
{inspect(res, {
colors: true,
depth: null,
maxArrayLength: Infinity,
})}
</Text>
</Box>
)}
</>
Expand Down

0 comments on commit 24567bf

Please sign in to comment.