diff --git a/cli/create.js b/cli/create.js deleted file mode 100755 index d5e2f52..0000000 --- a/cli/create.js +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env node - -import { join } from 'node:path' -import { parseArgs } from 'node:util' -import { Generator } from '../lib/generator.js' - -async function execute () { - const args = parseArgs({ - args: process.argv.slice(2), - options: { - dir: { - type: 'string', - default: join(process.cwd(), 'plt-php') - }, - port: { type: 'string', default: '3042' }, - hostname: { type: 'string', default: '0.0.0.0' }, - main: { type: 'string', default: 'index.php' }, - } - }) - - const generator = new Generator() - - generator.setConfig({ - targetDirectory: args.values.dir, - port: parseInt(args.values.port), - hostname: args.values.hostname, - main: args.values.main, - }) - - await generator.run() - - console.log('Application created successfully! Run `npm run start` to start an application.') -} - -execute() diff --git a/cli/start.js b/cli/start.js deleted file mode 100755 index 7a6eeb8..0000000 --- a/cli/start.js +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env node - -import { printAndExitLoadConfigError } from '@platformatic/config' -import { start } from '@platformatic/service' -import { stackable } from '../lib/index.js' - -start(stackable, process.argv.splice(2)).catch(printAndExitLoadConfigError)