Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 1.68 KB

File metadata and controls

72 lines (50 loc) · 1.68 KB

(cmd)=

Commands - libvcs.cmd

Compare to: fabtools.git, salt.modules.git, ansible.builtin.git

:::{warning}

All APIs are considered experimental and subject to break pre-1.0. They can and will break between versions.

:::

Overview

The libvcs.cmd module provides Python wrappers for VCS command-line tools:

  • {mod}libvcs.cmd.git - Git commands with Managers for intuitive entity traversal and Commands for targeted execution
  • {mod}libvcs.cmd.hg - Mercurial commands
  • {mod}libvcs.cmd.svn - Subversion commands

Async Variants

Async equivalents are available in libvcs.cmd._async:

  • {class}~libvcs.cmd._async.git.AsyncGit - Async git commands
  • {class}~libvcs.cmd._async.hg.AsyncHg - Async mercurial commands
  • {class}~libvcs.cmd._async.svn.AsyncSvn - Async subversion commands

See {doc}/topics/asyncio for usage patterns.

When to use cmd vs sync

Module Use Case
libvcs.cmd Fine-grained control over individual VCS commands
libvcs.sync High-level repository cloning and updating

Modules

::::{grid} 1 1 2 2 :gutter: 2 2 3 3

:::{grid-item-card} Git :link: git/index :link-type: doc Full git CLI wrapper with sub-command managers (branch, remote, stash, ...). :::

:::{grid-item-card} Mercurial :link: hg :link-type: doc Mercurial CLI wrapper. :::

:::{grid-item-card} Subversion :link: svn :link-type: doc Subversion CLI wrapper. :::

::::

:hidden:

git/index
hg
svn