Remove --verbose flag and Reporter#verbose
MODIFY
packages/@romefrontend/cli-reporter/Reporter.ts
packages/@romefrontend/cli-reporter/Reporter.ts
@@ -66,7 +66,6 @@ export type ReporterOptions = {
hasClearScreen?: boolean;
programVersion?: string;
markupOptions?: MarkupFormatOptions;
- verbose?: boolean;
useRemoteProgressBars?: boolean;
startTime?: number;
wrapperFactory?: WrapperFactory;
@@ -99,9 +98,6 @@ export default class Reporter {
this.programName =
opts.programName === undefined ? "rome" : opts.programName;
this.programVersion = opts.programVersion;
-
- this.isVerbose = Boolean(opts.verbose);
-
this.startTime = opts.startTime === undefined ? Date.now() : opts.startTime;
this.hasClearScreen =
opts.hasClearScreen === undefined ? true : opts.hasClearScreen;
@@ -275,7 +271,6 @@ export default class Reporter {
markupOptions: MarkupFormatOptions;
isRemote: boolean;
- isVerbose: boolean;
streamsWithNewlineEnd: Set<ReporterStreamMeta>;
streamsWithDoubleNewlineEnd: Set<ReporterStreamMeta>;
indentLevel: number;
@@ -602,7 +597,6 @@ export default class Reporter {
fork(opts: Partial<ReporterOptions> = {}) {
return new Reporter({
streams: [...this.streams],
- verbose: this.isVerbose,
markupOptions: this.markupOptions,
wrapperFactory: this.wrapperFactory,
...opts,
@@ -683,12 +677,6 @@ export default class Reporter {
this.logAll(`<table>${body}</table>`);
}
- verboseInspect(val: unknown) {
- if (this.isVerbose) {
- this.inspect(val);
- }
- }
-
inspect(value: unknown) {
const streams = this.getStreams(false);
if (streams.size === 0) {
@@ -1028,12 +1016,6 @@ export default class Reporter {
);
}
- verbose(msg: string, ...args: Array<unknown>) {
- if (this.isVerbose) {
- this.verboseForce(msg, ...args);
- }
- }
-
verboseForce(msg: string, ...args: Array<unknown>) {
this.logAllWithCategory(
msg,

MODIFY
packages/@romefrontend/cli/cli.ts
packages/@romefrontend/cli/cli.ts
@@ -106,12 +106,6 @@ export default async function cli() {
clientFlags: {
clientName: "cli",
cwd,
- verbose: c.get(
- "verbose",
- {
- description: "Output verbose logs",
- },
- ).asBoolean(DEFAULT_CLIENT_FLAGS.verbose),
silent: c.get(
"silent",
{

MODIFY
packages/@romefrontend/core/client/Client.ts
packages/@romefrontend/core/client/Client.ts
@@ -109,7 +109,6 @@ export default class Client {
this.reporter = new Reporter({
stdin: opts.stdin,
- verbose: this.flags.verbose === true,
markupOptions: {
userConfig: this.userConfig,
cwd: this.flags.cwd,

MODIFY
packages/@romefrontend/core/common/types/client.ts
packages/@romefrontend/core/common/types/client.ts
@@ -18,7 +18,6 @@ export const DEFAULT_CLIENT_FLAGS: ClientFlags = {
clientName: "unknown",
cwd: CWD_PATH,
silent: false,
- verbose: false,
};
export const DEFAULT_CLIENT_REQUEST_FLAGS: ClientRequestFlags = {
@@ -60,7 +59,6 @@ export type ClientFlags = {
clientName: string;
cwd: AbsoluteFilePath;
silent: boolean;
- verbose: boolean;
};
export type ClientFlagsJSON = Omit<ClientFlags, "cwd"> & {

MODIFY
packages/@romefrontend/core/common/utils/Logger.ts
packages/@romefrontend/core/common/utils/Logger.ts
@@ -21,10 +21,7 @@ export default class Logger extends Reporter {
write: (chunk: string) => void;
},
) {
- super({
- verbose: true,
- ...opts,
- });
+ super(opts);
this.loggerType = loggerType;
this.conditionalStream = this.attachConditionalStream(

MODIFY
packages/@romefrontend/core/server/Server.ts
packages/@romefrontend/core/server/Server.ts
@@ -677,7 +677,6 @@ export default class Server {
hasClearScreen,
wrapperFactory: this.wrapFatal.bind(this),
streams: [outStream, errStream],
- verbose: flags.verbose,
markupOptions: {
...this.logger.markupOptions,
cwd: flags.cwd,

MODIFY
packages/@romefrontend/core/server/lsp/protocol.test.ts
packages/@romefrontend/core/server/lsp/protocol.test.ts
@@ -6,9 +6,7 @@ function createTransportTest(
callback: (transport: LSPTransport) => void,
): (t: TestHelper) => void {
return function(t: TestHelper) {
- const reporter = new Reporter({
- verbose: true,
- });
+ const reporter = new Reporter();
const stream = reporter.attachCaptureStream();

MODIFY
website/src/docs/cli/debugging.md
website/src/docs/cli/debugging.md
@@ -32,5 +32,3 @@ layout: layouts/page.njk
### `--rage-path <path>`
### `--timing`
-
-### `--verbose`

Remove --verbose flag and Reporter#verbose (#792)