Rex::Commands::SCM(3)
β¨ NAME β¨
okay so bestie, this is the manual page for Rex::Commands::SCM(3) β the User Contributed Perl Documentation one π. It's Rex::Commands::SCM β Sourcecontrol for Subversion and Git.
π¦ DESCRIPTION π¦
With this module you can checkout subversion and git repositories. That's the whole vibe: Subversion and Git checkout energy, and honestly? iconic π .
β οΈ Two important notes, no cap: - Version <= 1.0: All these functions will not be reported. π - All these functions are not idempotent. So yeah, that detail matters, bestie.
πΈ SYNOPSIS πΈ
Here's the code exactly as the page gives it, so you can copy it and not have to squint π:
use Rex::Commands::SCM;
set repository => "myrepo",
url => 'git@foo.bar:myrepo.git';
set repository => "myrepo2",
url => "https://foo.bar/myrepo",
type => "subversion",
username => "myuser",
password => "mypass";
task "checkout", sub {
checkout "myrepo";
checkout "myrepo",
path => "webapp";
checkout "myrepo",
path => "webapp",
branch => 1.6; # branch only for git
# For Git only, will replay any local commits on top of pulled commits
checkout "myrepo",
path => "script_dir",
rebase => TRUE;
checkout "myrepo2";
};
The comments are literally part of the synopsis too: branch is only for git, and rebase is for Git only β it will replay any local commits on top of pulled commits. iykyk π«Ά.
π EXPORTED FUNCTIONS π
checkout($name, %data);
With this function you can checkout a repository defined with set repository. See Synopsis. That's the function, bestie β short, sweet, and ready to check out your repos β¨.
Cute footer sign-off time π
: this page is Rex::Commands::SCM(3), from perl v5.42.3, dated 2023-08-05. Byeee, go checkout those repositories ππ.
π¦ where this page comes from
- nixos 26.05: perl5.42.3-Rex 1.14.3
- nixpkgs unstable: perl5.42.3-Rex 1.14.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms