vag_tools
v0.0.10
Published
api and cli for managing sub-git-repositories
Downloads
26
Maintainers
Readme
README of vag_tools
Presentation
vag_tools is a nodejs package for managing git sub-repositories. It contains:
- vag_core: a javascript library proposing all the featues via an API
- vag: a CLI-app with the same features for the command-line
- vagg: a Web-UI (starting a server and opening a UI-page in the browser) with the same features
Requirements
Installation
npm i -D vag_tools
npx vag --help
Config file
An example of config file for vag:
repositories:
repos/parametrix:
type: git
url: [email protected]:charlyoleg2/parametrix.git
version: main
repos/parame_paxApps:
url: https://github.com/charlyoleg2/parame_paxApps.git
version: main
parame51:
url: https://github.com/charlyoleg2/parame51.git
version: main
Usage in script
import { Vag } from 'vag_core';
Vag.version_short()
const vag = new Vag(argv.discoverDir, argv.deepSearch, argv.importYaml, argv.importDir);
await vag.init();
await vag.c_clone();
await vag.cd_checkout();
await vag.d_pull(argv.only_configured);
await vag.d_push(argv.only_configured);
Usage in command-line
npx vag --help
npx vag --importYaml=parametrix_repos.yml list
npx vag --importYaml=parametrix_repos.yml clone