Hierarchy

  • submodule

Constructors

Properties

cwd: string
github: Record<string, git> = {}
hasConfig: boolean

Methods

  • add submodule

    Parameters

    • opt: {
          branch?: string;
          dest: string;
          remote: string;
      }
      • Optional branch?: string
      • dest: string
      • remote: string

    Returns Promise<void>

  • git add all each submodule

    Parameters

    • pathOrArg: string

      ex: -A

    Returns Bluebird<string>

  • Parameters

    • msg: string

    Returns Bluebird<string>

  • remove submodule

    Parameters

    • path: string

      path to submodule

    Returns Promise<void>

  • Update all submodule with cd method

    Parameters

    • reset: boolean = false

      do git reset --hard origin/branch ?

    Returns Bluebird<unknown>

  • Parameters

    • opt: SpawnOptions = {}

    Returns SpawnOptions

  • git submodule status

    Parameters

    • optionSpawn: SpawnOptions = ...

    Returns Bluebird<string>

  • git submodule update

    Parameters

    • args: string[] = []

      custom arguments

    • optionSpawn: SpawnOptions = ...

    Returns Bluebird<string>