Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

518 B
Raw Blame
import * as p from '@clack/prompts'
import type { Command } from 'commander'
import { detectProject } from '../context.js'
import { dockerCompose } from '../docker.js'

export function registerStopCommand(program: Command): void {
  program
    .command('stop')
    .description('Stop services')
    .action(async () => {
      const ctx = detectProject()

      const s = p.spinner()
      s.start('Stopping services...')
      await dockerCompose(['stop'], ctx.projectDir)
      s.stop('Services stopped.')
    })
}