Skip to main content

@kosko/cli-utils

Index

Variables

publicconstglobalOptions

globalOptions: { cwd: { default: () => string; defaultDescription: CWD; describe: Path of working directory; global: true; type: string; coerce: any }; log-level: { default: info; describe: Set log level; global: true; type: string }; silent: { default: false; describe: Disable log output; global: true; type: boolean } } = ...

Type declaration

  • readonlycwd: { default: () => string; defaultDescription: CWD; describe: Path of working directory; global: true; type: string; coerce: any }
    • readonlydefault: () => string
        • (): string
        • The process.cwd() method returns the current working directory of the Node.js process.

          import { cwd } from 'process';

          console.log(`Current directory: ${cwd()}`);
          @since

          v0.1.8


          Returns string

    • readonlydefaultDescription: CWD
    • readonlydescribe: Path of working directory
    • readonlyglobal: true
    • readonlytype: string
    • coerce: function
      • coerce(arg: string): string

      • Parameters

        • arg: string

        Returns string

  • readonlylog-level: { default: info; describe: Set log level; global: true; type: string }
    • readonlydefault: info
    • readonlydescribe: Set log level
    • readonlyglobal: true
    • readonlytype: string
  • readonlysilent: { default: false; describe: Disable log output; global: true; type: boolean }
    • readonlydefault: false
    • readonlydescribe: Disable log output
    • readonlyglobal: true
    • readonlytype: boolean
Page Options