dx

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 11 Imported by: 0

README

DX

Improve development experience that working in my cooperation development

Installation

go install github.com/kitimark/dx/cmd/dx@latest

Features

Help to deploy dev/beta branch
## Create new feature branch
git checkout -b feature

## Make some change for example; file.go

## Add files with git
git add file.go

## Commit with dx on feature branch
dx commit -m "message"

## Sync change from feature into dev branch
dx sync dev

## Push change into origin/dev branch
git push origin dev
Auto Resolve conflict

File types is supported to auto resolve conflict

  • go.sum
  • yarn.lock
## Try to rebase feature above main branch and then got code conflict
## Or another actions that can got a code conflict
git rebase origin/main

## Then got a conflict that 
## - go.sum is in these conflict
##   - Resolve go.mod and *.go code first
##   - Run dx resolve-conflict
## - yarn.lock is in these conflict
##   - Resolve package.json files first
##   - Run dx resolve-conflict
dx resolve-conflict

Next features improvement

  • Sync mirror file to another repo
    • Example: some protobuf files
    • TBD

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommitCmd

func NewCommitCmd() *cobra.Command

func NewMainCmd

func NewMainCmd() *cobra.Command

func NewResolveConflictCmd added in v0.1.0

func NewResolveConflictCmd() *cobra.Command

func NewSyncCmd

func NewSyncCmd() *cobra.Command

func NewVersionCmd added in v0.1.0

func NewVersionCmd() *cobra.Command

Types

type Commit

type Commit struct {
	Hash      string
	Message   string
	ChangeIDs []string
	// SubCommit is commits that squash into single command
	// that contain all original commit detail sorted by create time asc
	SubCommit []*Commit
}

Directories

Path Synopsis
cmd
dx command
pkg

Jump to

Keyboard shortcuts

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