git-in-sync parses flags, reads ~/.gisrc.json then configures directories and
repositories as configured.
~/.gisrc.jsonoutlines directories and their repos asbundlesandzones:
{json block showing configuration}
- Modes are set with
-m:
{Here is where the modes go}
- Additional options can also be set:
{Here is where the additional options go}
- .gisrc.json unmarshalled to
Configstruct
type Config struct {
Zones []struct {
Path string `json:"path"`
Bundles []struct {
User string `json:"user"`
Remote string `json:"remote"`
Division string `json:"division"`
Repos []string `json:"repositories"`
} `json:"bundles"`
} `json:"zones"`
}- The default mode is
verify. In this mode:
- Verifies directory structure
- Verifies repositories existence [highlight that it's async]
- Gets Git information for each repository
-
If the repository is complete, it's marked as such. Otherwise the user is prompted to confirm the next step
{Steps go here}
-
Once all actions have been cued...final approval...actions dispatched