qs

command module
v1.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2022 License: MIT Imports: 10 Imported by: 0

README

Quick source management tool

Installation Prerequisites

gh

git

  • $Git\usr\bin must be in PATH
    • gives yes, grep, sed and other Unix utilities

Installation

go install github.com/untillpro/qs@v1.20.0

For linux additionally: sudo apt install xclip

Usage

Must be run in cloned github repo folder. Path qs.exe should be added to system PATH env variable.

  • qs: show status of current folder

  • qs d : Download sources (git pull)

  • qs u -m [message] : Upload sources (git add + commit + push)

  • qs r : Create release

  • qs g : Shows Git GUI

  • qs -h, qs --help : Help for qs

  • qs -v, qs --verbose: Verbose output

  • qs fork : Forks repo to user's account and creates upstream

  • qs dev repo-name : Make new dev branch with name repo-name Repo-name can be copied as [Name and Permanent link] from Project Kaiser task.

  • qs dev -d : Deletes branches in user's repository, which were accepted & mergred to parent repo

  • qs pr : Create pull request. Title is taken from name of topic in "qs dev" command

  • qs pr merge [PR URL] : Merge pull request.

Note:

  • qs u takes comment from clipboard. If current branch is "main/master", and message is empty or very short (<3 symbols), qs will not allow to make commit and will show message: ---- Empty commit comment in main repo/branch not allowed! ---

Read version from go file

Create file version.go in src folder with body

package main

var Major = 1
var Minor = 0
var Patch = 0

Now you can get version from go file

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL