cfxmarkets/repo-tools

There is no license information available for the latest version (v1.0.0) of this package.

A small set of tools to help manage repositories, such as database migration tools, etc. NOTE: Because these tools encompass a wide range of uses, we've decided not to declare their dependencies explicitly. Rather, these dependencies are _suggested,_ such that people who need them may easily find an

Installs: 362

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Language:Shell

v1.0.0 2019-03-28 22:03 UTC

This package is auto-updated.

Last update: 2024-10-29 05:10:49 UTC


README

This repo comprises a small collection of bash scripts that may be useful for repo maintenance tasks.

Important: Some of these tools utilize dependencies that are not officially declared. The point of them is simply to be able to share them among repos with fairly formulaic structures. Often, these structures will be very CFX-specific. Feel free to fork....

Usage

shmig-show-migrations-for-ref

NAME
        shmig-show-migrations-for-ref - use shmig to list migrations for a particular branch of a git repository

SYNOPSIS
        shmig-show-migrations-for-ref [options] [ref]

DESCRIPTION
        Checks out [ref] into a temp directory and uses shmig to get a full list of available migrations.
        The intended use for this in conjunction with `migrate-to-common-ancestor`.

OPTIONS
        --repo-root|-r
            Optional. The repo in which to operate this command. If not supplied, the command moves
            up from the current working directory trying to find a .git directory.

        --tmp-dir|-t
            Optional. The path to the directory to use as a temp directory. If none provided, a random
            temp directory will be created under /tmp/.

        --no-cleanup|-n
            Optional. Don't delete the temporary directory.

shmig-migrate-to-common-ancestor

NAME
        shmig-migrate-to-common-ancestor - use shmig to migrate the database of a repository to the common ancestor of two refs

SYNOPSIS
        shmig-migrate-to-common-ancestor [options] [from_ref] [to_ref]

DESCRIPTION
        Finds the common database migration ancestor between [from_ref] and [to_ref] and uses shmig
        to migrate the database to that ancestor

OPTIONS
        --repo-root|-r
            Optional. The repo in which to operate this command. If not supplied, the command moves
            up from the current working directory trying to find a .git directory.