MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / createCommand

Function createCommand

src/commands/create.ts:124–142  ·  view source on GitHub ↗
(
  directory?: string,
  options: CreateCommandOptions = {},
)

Source from the content-addressed store, hash-verified

122}
123
124export async function createCommand(
125 directory?: string,
126 options: CreateCommandOptions = {},
127): Promise<void> {
128 const workDir = directory ? path.resolve(directory) : process.cwd();
129
130 if (directory) {
131 fs.mkdirSync(workDir, { recursive: true });
132 }
133
134 // --config mode: initialize from remote/local skillpack.json
135 if (options.config) {
136 await initFromConfig(workDir, options.config);
137 return;
138 }
139
140 // Interactive creation mode
141 await interactiveCreate(workDir);
142}
143
144// ---------------------------------------------------------------------------
145// --config mode (formerly init command)

Callers 1

cli.tsFile · 0.85

Calls 2

initFromConfigFunction · 0.85
interactiveCreateFunction · 0.85

Tested by

no test coverage detected