GithubHelp home page GithubHelp logo

star's People

Contributors

voidint avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

chennqqi

star's Issues

交互式命令行环境下push命令

  • 将本地的star列表推送到远端指定仓库下进行持久化。若远端仓库在此期间产生了修改,则拒绝此命令执行。
  • push命令支持附带-f, --force选项,此选项支持强制将本地star列表推送到远程仓库并持久化。

交互式命令行环境下pull命令

  • 数据源一: 从远端拉取到的当前用户下的star列表。
  • 数据源二: 从远端指定仓库下拉取到的star列表及其tags。
  • 合并数据源一和数据源二,并装入本地内存。
  • 拉取远端指定仓库下最新的git commit hash

交互式命令行环境下tag管理命令

列出指定层级的tag

tag [tagname]

添加tag

tag add <tagname>

tagname允许以类似container/docker的方式添加带层级的tag,其中第一级tag为container,第二级别tag为docker。同级别的tag名称不允许重复。

移除tag

tag rm <tagname>

tag名规则同tag add。移除仅对最末级tag生效,如tag rm container/docker仅会移除docker这层级的tag。

重命名tag

tag rename <tagname>

重命名仅对最末级tag生效。

交互式命令行环境下init命令

  • 拉取当前用户在github的star列表,并将star列表以特定格式写入特定仓库下的特定文件中进行持久化。
  • 若目标仓库的目标文件中已经包含了内容,则一律覆盖。
  • 该命令属于高危操作,需二次确认。

交互式命令行环境下use命令

  • use [github/gitee]将上下文环境切换到目标插件环境下。
  • 若目标插件非当前插件,需重新输入用户名和密码。
  • 上下文环境切换完毕后,在终端输出Plugin changed

使用gbb编译项目

生成gbb.json

{
    "version": "0.5.0",
    "tool": "go install -v -ldflags '-s -w'",
    "importpath": "github.com/voidint/star/build",
    "variables": [
        {
            "variable": "Build",
            "value": "{{.Date}}"
        },
        {
            "variable": "GitCommitHash",
            "value": "{{.GitCommit}}"
        }
    ]
}

支持通过环境变量读取所需配置

  • STAR_GITHUB_TOKEN: 操作个人GitHub资源所需的Access Token
  • STAR_GITEE_TOKEN: 操作个人Gitee资源所需的私人令牌
  • STAR_REPO: 存储标星仓库列表数据的仓库名。默认值awesome-star
  • STAR_BRANCH: 存储标星仓库列表数据仓库的分支名。默认值master

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.