cfxmarkets/repo-tools

此包最新版本(v1.0.0)没有提供许可信息。

一组用于管理仓库的小工具,例如数据库迁移工具等。注意:由于这些工具应用范围广泛,我们决定不明确声明它们的依赖。相反,这些依赖被建议使用,以便需要的人可以轻松找到

安装: 362

依赖者: 0

建议者: 0

安全性: 0

星标: 0

关注者: 4

分支: 0

语言:Shell

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

This package is auto-updated.

Last update: 2024-08-29 04:43:11 UTC


README

此仓库包含一系列可能对仓库维护任务有用的bash脚本。

重要:其中一些工具使用了未官方声明的依赖。它们的目的是能够在具有相当公式化结构的仓库之间共享。通常,这些结构会非常CFX特定。请随意分支...

用法

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.