Constructors
constructor
- new submodule(cwd: string): submodule
-
Properties
cwd
cwd: string
Private
github
github: any
hasConfig
hasConfig: boolean
Private
spawnOpt
spawnOpt: any
Methods
add
- add(opt: {
branch?: string;
dest: string;
remote: string;
}): Promise<void>
-
Parameters
-
opt: {
branch?: string;
dest: string;
remote: string;
}
-
Optional
branch?: string
-
dest: string
-
remote: string
Returns Promise<void>
addAll
- addAll(pathOrArg: string): Bluebird<string>
-
commitAll
- commitAll(msg: string): Bluebird<string>
-
get
- get(): ({
branch: string;
github: git;
} & Submodule)[]
-
Returns ({
branch: string;
github: git;
} & Submodule)[]
hasSubmodule
- hasSubmodule(): boolean
-
Returns boolean
remove
- remove(path: string): Promise<void>
-
Returns Promise<void>
safeUpdate
- safeUpdate(reset?: boolean): Bluebird<unknown>
-
Returns Bluebird<unknown>
status
- status(optionSpawn?: SpawnOptions): Bluebird<string>
-
update
- update(args?: string[], optionSpawn?: SpawnOptions): Bluebird<string>
-
add submodule