@teambit/cli 0.0.858 → 0.0.860
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_harmony_cli-preview.js +1 -1
- package/artifacts/schema.json +34 -102
- package/dist/cli-parser.js +1 -1
- package/dist/cli-parser.js.map +1 -1
- package/dist/cli.cmd.js +1 -1
- package/dist/cli.cmd.js.map +1 -1
- package/dist/cli.main.runtime.js +1 -1
- package/dist/cli.main.runtime.js.map +1 -1
- package/dist/command-runner.js +5 -8
- package/dist/command-runner.js.map +1 -1
- package/dist/completion.cmd.js +1 -1
- package/dist/exceptions/command-not-found.js +1 -1
- package/dist/exceptions/command-not-found.js.map +1 -1
- package/dist/help.cmd.js +1 -1
- package/dist/help.cmd.js.map +1 -1
- package/dist/legacy-command-adapter.js +1 -1
- package/dist/{preview-1710991124101.js → preview-1712719054377.js} +2 -2
- package/dist/version.cmd.js +1 -1
- package/dist/version.cmd.js.map +1 -1
- package/dist/yargs-adapter.js +1 -1
- package/dist/yargs-adapter.js.map +1 -1
- package/package.json +4 -4
- package/tsconfig.json +7 -1
- package/dist/cli-parser.d.ts +0 -35
- package/dist/cli.aspect.d.ts +0 -4
- package/dist/cli.cmd.d.ts +0 -32
- package/dist/cli.composition.d.ts +0 -1
- package/dist/cli.main.runtime.d.ts +0 -85
- package/dist/command-runner.d.ts +0 -29
- package/dist/completion.cmd.d.ts +0 -8
- package/dist/exceptions/already-exists.d.ts +0 -4
- package/dist/exceptions/command-not-found.d.ts +0 -7
- package/dist/exceptions/index.d.ts +0 -1
- package/dist/generate-doc-md.d.ts +0 -25
- package/dist/get-command-id.d.ts +0 -1
- package/dist/help.cmd.d.ts +0 -16
- package/dist/help.d.ts +0 -3
- package/dist/index.d.ts +0 -6
- package/dist/legacy-command-adapter.d.ts +0 -29
- package/dist/version.cmd.d.ts +0 -14
- package/dist/yargs-adapter.d.ts +0 -20
package/dist/command-runner.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { CLIArgs, Command, Flags } from '@teambit/legacy/dist/cli/command';
|
|
2
|
-
import { OnCommandStartSlot } from './cli.main.runtime';
|
|
3
|
-
export declare class CommandRunner {
|
|
4
|
-
private command;
|
|
5
|
-
private args;
|
|
6
|
-
private flags;
|
|
7
|
-
private onCommandStartSlot;
|
|
8
|
-
private commandName;
|
|
9
|
-
constructor(command: Command, args: CLIArgs, flags: Flags, onCommandStartSlot: OnCommandStartSlot);
|
|
10
|
-
/**
|
|
11
|
-
* run command using one of the handler, "json"/"report"/"render". once done, exit the process.
|
|
12
|
-
*/
|
|
13
|
-
runCommand(): Promise<boolean | void | null>;
|
|
14
|
-
private bootstrapCommand;
|
|
15
|
-
private invokeOnCommandStart;
|
|
16
|
-
/**
|
|
17
|
-
* this works for both, Harmony commands and Legacy commands (the legacy-command-adapter
|
|
18
|
-
* implements json() method)
|
|
19
|
-
*/
|
|
20
|
-
private runJsonHandler;
|
|
21
|
-
private runReportHandler;
|
|
22
|
-
private runWaitHandler;
|
|
23
|
-
/**
|
|
24
|
-
* the loader and logger.console write output to the console during the command execution.
|
|
25
|
-
* for internals commands, such as, _put, _fetch, the command.loader = false.
|
|
26
|
-
*/
|
|
27
|
-
private determineConsoleWritingDuringCommand;
|
|
28
|
-
private writeAndExit;
|
|
29
|
-
}
|
package/dist/completion.cmd.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AlreadyExistsError } from './already-exists';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Command } from '@teambit/legacy/dist/cli/command';
|
|
2
|
-
export type GenerateOpts = {
|
|
3
|
-
metadata?: Record<string, string>;
|
|
4
|
-
};
|
|
5
|
-
type CommandObject = ReturnType<typeof oneCommandToObject> & {
|
|
6
|
-
commands?: any;
|
|
7
|
-
};
|
|
8
|
-
export declare class GenerateCommandsDoc {
|
|
9
|
-
private commands;
|
|
10
|
-
private options;
|
|
11
|
-
constructor(commands: Command[], options: GenerateOpts);
|
|
12
|
-
generate(): string;
|
|
13
|
-
generateJson(): CommandObject[];
|
|
14
|
-
private commandsToObjects;
|
|
15
|
-
private getFrontmatter;
|
|
16
|
-
private getAllPublicCommandsSorted;
|
|
17
|
-
private generateCommand;
|
|
18
|
-
private generateSubCommands;
|
|
19
|
-
private generateArguments;
|
|
20
|
-
private generateOptions;
|
|
21
|
-
private formatStringToMD;
|
|
22
|
-
private formatDescription;
|
|
23
|
-
}
|
|
24
|
-
declare function oneCommandToObject(command: Command): Partial<Command>;
|
|
25
|
-
export {};
|
package/dist/get-command-id.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getCommandId(cmdName: string): string;
|
package/dist/help.cmd.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Command } from '@teambit/legacy/dist/cli/command';
|
|
2
|
-
import type { CommandOptions } from '@teambit/legacy/dist/cli/legacy-command';
|
|
3
|
-
import { CLIMain } from './cli.main.runtime';
|
|
4
|
-
export declare class HelpCmd implements Command {
|
|
5
|
-
private cliMain;
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
alias: string;
|
|
9
|
-
loader: boolean;
|
|
10
|
-
group: string;
|
|
11
|
-
options: CommandOptions;
|
|
12
|
-
constructor(cliMain: CLIMain);
|
|
13
|
-
report(_: any, { internal }: {
|
|
14
|
-
internal: boolean;
|
|
15
|
-
}): Promise<string>;
|
|
16
|
-
}
|
package/dist/help.d.ts
DELETED
package/dist/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CLIAspect, MainRuntime } from './cli.aspect';
|
|
2
|
-
export type { CLIMain, CommandList, CommandsSlot } from './cli.main.runtime';
|
|
3
|
-
export type { Command, CLIArgs, Flags, GenericObject } from '@teambit/legacy/dist/cli/command';
|
|
4
|
-
export type { CommandOptions } from '@teambit/legacy/dist/cli/legacy-command';
|
|
5
|
-
export * from './exceptions';
|
|
6
|
-
export { CLIAspect as default, MainRuntime, CLIAspect };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { LegacyCommand } from '@teambit/legacy/dist/cli/legacy-command';
|
|
2
|
-
import { Command, CommandOptions, GenericObject } from '.';
|
|
3
|
-
import { CLIMain } from './cli.main.runtime';
|
|
4
|
-
export declare class LegacyCommandAdapter implements Command {
|
|
5
|
-
private cmd;
|
|
6
|
-
alias: string;
|
|
7
|
-
name: string;
|
|
8
|
-
description: string;
|
|
9
|
-
options: CommandOptions;
|
|
10
|
-
extendedDescription?: string;
|
|
11
|
-
group?: string;
|
|
12
|
-
loader?: boolean;
|
|
13
|
-
commands: Command[];
|
|
14
|
-
private?: boolean;
|
|
15
|
-
skipWorkspace?: boolean;
|
|
16
|
-
helpUrl?: string;
|
|
17
|
-
_packageManagerArgs?: string[];
|
|
18
|
-
constructor(cmd: LegacyCommand, cliExtension: CLIMain);
|
|
19
|
-
private action;
|
|
20
|
-
report(params: any, options: {
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
}): Promise<{
|
|
23
|
-
data: string;
|
|
24
|
-
code: number;
|
|
25
|
-
}>;
|
|
26
|
-
json(params: any, options: {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}): Promise<GenericObject>;
|
|
29
|
-
}
|
package/dist/version.cmd.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Command } from '@teambit/legacy/dist/cli/command';
|
|
2
|
-
import type { CommandOptions } from '@teambit/legacy/dist/cli/legacy-command';
|
|
3
|
-
export declare class VersionCmd implements Command {
|
|
4
|
-
name: string;
|
|
5
|
-
description: string;
|
|
6
|
-
alias: string;
|
|
7
|
-
loader: boolean;
|
|
8
|
-
group: string;
|
|
9
|
-
options: CommandOptions;
|
|
10
|
-
report(): Promise<any>;
|
|
11
|
-
json(): Promise<{
|
|
12
|
-
bit: any;
|
|
13
|
-
}>;
|
|
14
|
-
}
|
package/dist/yargs-adapter.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Command } from '@teambit/legacy/dist/cli/command';
|
|
2
|
-
import { Arguments, CommandModule, Argv, Options } from 'yargs';
|
|
3
|
-
import { OnCommandStartSlot } from './cli.main.runtime';
|
|
4
|
-
export declare const GLOBAL_GROUP = "Global";
|
|
5
|
-
export declare const STANDARD_GROUP = "Options";
|
|
6
|
-
export declare class YargsAdapter implements CommandModule {
|
|
7
|
-
private commanderCommand;
|
|
8
|
-
private onCommandStartSlot;
|
|
9
|
-
command: string;
|
|
10
|
-
describe?: string;
|
|
11
|
-
aliases?: string;
|
|
12
|
-
constructor(commanderCommand: Command, onCommandStartSlot: OnCommandStartSlot);
|
|
13
|
-
builder(yargs: Argv): Argv<{}>;
|
|
14
|
-
handler(argv: Arguments): Promise<boolean | void | null>;
|
|
15
|
-
get positional(): import("@teambit/legacy/dist/cli/command").CommandArg[] | undefined;
|
|
16
|
-
static optionsToBuilder(command: Command): {
|
|
17
|
-
[key: string]: Options;
|
|
18
|
-
};
|
|
19
|
-
static getGlobalOptions(command: Command): Record<string, any>;
|
|
20
|
-
}
|