The constructor of the Vag
class.
listD
is initialized to an empty list.
listC
is initialized to an empty object.
When a repository is encountered, should it be inspected for searching sub-repositories?
The top directory from where to search repositories.
The base directory where the directories listed in the yaml-file should be cloned.
The path to the yaml-file that provides the repositories to be cloned.
An object with the content of the yaml-file. It is populated by the init()
method.
The list of the path of the discovered repositories. It is populated by the init()
method.
Clone the repositories of listC
.
List the wished repositories (a.k.a. configured repositories).
Checkout the repositories listed in listC
and listD
.
List the git-repos which are in the D-list and in the C-list. I.e. Intersection of D and C.
For the repositories listed in listC
and listD
, verify if they fit with the configuration of Yaml-file.
List the git-repos which are in the C-list but not in the D-list. I.e. C not D.
Show the current branch of the discoverd repositories (listD
).
Git-clean -dxf
on the discoverd repositories (listD
).
Run a custom git-command on the discoverd repositories (listD
).
Git-diff on the discoverd repositories (listD
).
Export in a Yaml-file the list of discoverd repositories (listD
).
Git-fetch on the discoverd repositories (listD
).
List the discovered repositories.
Git-log -n 3
on the discoverd repositories (listD
).
Git-pull on the discoverd repositories (listD
).
Git-push on the discoverd repositories (listD
).
Git-remote -vv
on the discoverd repositories (listD
).
Git-stash list
on the discoverd repositories (listD
).
Git-status on the discoverd repositories (listD
).
List the git-repos which are in the D-list but not in the C-list. I.e. D not C.
The init
method populate populate listD
and listC
.
It must be called just after instanciating Vag
.
The configuration properties discoverDir
, deepSearch
, importYaml
and importDir
can be reassinged by init
.
Validate a yaml-file that could be imported later on.
the path to the yaml-file to be checked/validated.
an integer-code. 0 if the validation is successful, negative otherwise.
Static
version_Return a string with the three numbers (major, minor, patch) written in the package.json.
the string Major.Minor.Patch
A class that contains a list of configured repositories, a list of discovered repositories and methods that use those two lists.