MCPcopy Index your code
hub / github.com/teambit/bit / json

Method json

src/cli/command.ts:102–102  ·  view source on GitHub ↗

* Optional handler to provide a raw result of the command. * Will be go called if '-j'/'--json' option is provided by user. * @param args - arguments object as defined in name. * @param flags - command flags as described in options. * @return a GenericObject to be rendered to string (by

(args: CLIArgs, flags: Flags)

Source from the content-addressed store, hash-verified

100 * @return a GenericObject to be rendered to string (by json.stringify) in the console.
101 */
102 json?(args: CLIArgs, flags: Flags): Promise<GenericObject>;
103}
104export type Flags = { [flagName: string]: string | boolean | undefined };
105export type CLIArgs = Array<string[] | string>;

Callers 2

logger.tsFile · 0.65
runJsonHandlerMethod · 0.65

Implementers 13

InsightsCmdsrc/extensions/insights/insights.cmd.t
InstallCmdsrc/extensions/workspace/install.cmd.t
ListCmdsrc/extensions/workspace/list.cmd.tsx
CompileCmdsrc/extensions/compiler/compiler.cmd.t
PackCmdsrc/extensions/pkg/pack.cmd.tsx
LegacyCommandAdaptersrc/extensions/cli/legacy-command-adap
TestCmdsrc/extensions/tester/test.cmd.tsx
CapsuleCreateCmdsrc/extensions/isolator/capsule-create
CapsuleListCmdsrc/extensions/isolator/capsule-list.c
WatchCommandsrc/extensions/watch/watch.cmd.tsx
StartCmdsrc/extensions/ui/start.cmd.tsx
CreateCmdsrc/extensions/create/create.cmd.tsx

Calls

no outgoing calls

Tested by

no test coverage detected