Skip to content

Commit

Permalink
fix: verbose hide status
Browse files Browse the repository at this point in the history
  • Loading branch information
crherman7 committed Aug 7, 2024
1 parent da78b57 commit 4231156
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 13 additions & 1 deletion packages/cli/src/cmds/prebuild.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ import {
FlagshipCodeManager,
logger,
} from '@brandingbrand/code-cli-kit';
import ansiAlign from 'ansi-align';

import * as actions from '@/actions';
import {config} from '@/lib';
import {
config,
FLAGSHIP_CODE_DESCRIPTION,
FLAGSHIP_CODE_LOGO,
FLAGSHIP_CODE_TITLE,
} from '@/lib';
import {Status} from '@/components/Status';

/**
Expand Down Expand Up @@ -72,6 +78,12 @@ program
logger.pause();
}

process.stdout.write(FLAGSHIP_CODE_LOGO + '\n\n');
process.stdout.write(
ansiAlign([FLAGSHIP_CODE_TITLE, FLAGSHIP_CODE_DESCRIPTION]).join('\n') +
'\n\n',
);

logger.printCmdOptions(options, 'prebuild');

FlagshipCodeManager.shared
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/src/components/Status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {StatusMessages} from './StatusMessages';
import StatusProgress from './StatusProgress';

import {
config,
FLAGSHIP_CODE_DESCRIPTION,
FLAGSHIP_CODE_LABEL,
FLAGSHIP_CODE_LOGO,
Expand All @@ -29,7 +30,7 @@ export function Status({res}: Props) {
}
}, [isPending]);

if (!data || isPending) return null;
if (!data || isPending || config.options.verbose) return null;

const {Box, Text} = data;

Expand Down

0 comments on commit 4231156

Please sign in to comment.