Skip to content

cli/create

Interfaces

CreateOptions

Defined in: venpm/src/cli/create.ts:9

Extends

Properties

config?
ts
optional config?: string;

Defined in: venpm/src/core/types.ts:183

Inherited from

GlobalOptions.config

css?
ts
optional css?: boolean;

Defined in: venpm/src/cli/create.ts:11

json?
ts
optional json?: boolean;

Defined in: venpm/src/core/types.ts:187

Inherited from

GlobalOptions.json

jsonStream?
ts
optional jsonStream?: boolean;

Defined in: venpm/src/core/types.ts:188

Inherited from

GlobalOptions.jsonStream

native?
ts
optional native?: boolean;

Defined in: venpm/src/cli/create.ts:12

quiet?
ts
optional quiet?: boolean;

Defined in: venpm/src/core/types.ts:185

Inherited from

GlobalOptions.quiet

tsx?
ts
optional tsx?: boolean;

Defined in: venpm/src/cli/create.ts:10

verbose?
ts
optional verbose?: boolean;

Defined in: venpm/src/core/types.ts:184

Inherited from

GlobalOptions.verbose

yes?
ts
optional yes?: boolean;

Defined in: venpm/src/core/types.ts:186

Inherited from

GlobalOptions.yes

Functions

detectCreateMode()

ts
function detectCreateMode(fs, targetPath): Promise<"repo" | "plugin">;

Defined in: venpm/src/cli/create.ts:52

Walk up ancestor directories from targetPath looking for a venpm plugins.json. Returns "plugin" if found, "repo" otherwise.

Parameters

ParameterType
fsFileSystem
targetPathstring

Returns

Promise<"repo" | "plugin">


executeCreate()

ts
function executeCreate(
   ctx, 
   targetPath, 
options): Promise<void>;

Defined in: venpm/src/cli/create.ts:244

Parameters

ParameterType
ctxIOContext
targetPathstring
optionsCreateOptions

Returns

Promise<void>


findAncestorIndex()

ts
function findAncestorIndex(fs, startPath): Promise<
  | {
  data: Record<string, unknown>;
  path: string;
}
| null>;

Defined in: venpm/src/cli/create.ts:21

Walk up ancestor directories from startPath looking for a plugins.json whose $schema contains "venpm". Returns { path, data } if found, null otherwise.

Parameters

ParameterType
fsFileSystem
startPathstring

Returns

Promise< | { data: Record<string, unknown>; path: string; } | null>


registerCreateCommand()

ts
function registerCreateCommand(program): void;

Defined in: venpm/src/cli/create.ts:267

Parameters

ParameterType
programCommand

Returns

void

Disclaimer — Not affiliated with Discord Inc. or Vencord. Client mods are against Discord's ToS. Use at your own risk.