Rex::Commands::SCM(3)

πŸ“¦ version 1.14.3, in nixos 26.05, nixpkgs unstable

✨ 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