Coder Social home page Coder Social logo

gogh's Introduction

Hi there πŸ‘‹

Stats

gogh's People

Contributors

dependabot[bot] avatar kyoh86 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gogh's Issues

in offline, idempotent "gogh new"

$ gogh new gordon
Initialized empty Git repository in /home/kyoh86/Projects/github.com/kyoh86/gordon/.git/
Error creating repository: Post https://api.github.com/user/repos: dial tcp: lookup api.github.com: Tempor
ary failure in name resolution
[1]

$ gogh new gordon
[ error ] 15:08:52 project already exists                  
[1]

unravel gogh.Context

It's not "Context"ual object.
Global Function (like config.UserName())

attention:

  • to keep testable
  • to cacheable (about high cost property)

make gogogh command

gogogh : change working directory to path to the project;

Make it by shell-script because subprocesses cannot change working directory.

getするとwarnγŒε‡Ίγ‚‹

$ gogh get kyoh86/gogh
Cloning into '/Users/kyoh86/Projects/github.com/kyoh86/gogh'...
remote: Enumerating objects: 46, done.
remote: Counting objects: 100% (46/46), done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 1823 (delta 12), reused 39 (delta 12), pack-reused 1777
Receiving objects: 100% (1823/1823), 2.67 MiB | 2.64 MiB/s, done.
Resolving deltas: 100% (886/886), done.
/Users/kyoh86/Projects/github.com/kyoh86/gogh
[  warn ] 14:01:15 Exists /Users/kyoh86/Projects/github.com/kyoh86/gogh
$ 

Use GitHub Actions

  • yo go-project --projectName ${PWD##*/} --author ${${PWD%/*}##*/} --license MIT --dir ${PWD}
  • git rm -rf .circleci
  • sudo rm -rf "$(go env GOPATH)/pkg" && go get -v -d -t ./... && go mod tidy
  • git add -p and git commit -m "Replace Circle-CI with GitHub Actions"
  • Set CODECOV_TOKEN and GORELEASER_GITHUB_TOKEN on repository

support custom format in the list

to support kyoh86/vim-gogh#1 ,
gogh list should be able to list name & fullpath in parallel

like

gogh<SEP>/home/kyoh86/Projects/github.com/kyohiy/gogh
vim-gogh<SEP>/home/kyoh86/Projects/github.com/kyohiy/gogh
gogh<SEP>/home/kyoh86/Projects/github.com/kyohiy/gogh

Update README.md

  • where and repo isn't in SYNOPSIS and COMMANDS
  • gogh.github.user isn't in CONFIG

Initial, cannot set config with `config put`

$ mv ~/.config/gogh/config.yaml ~/.config/gogh/config.yaml.old
$ gogh config put github.user kyoh86
2020/01/05 19:52:08 error: invalid GitHub user in the context; set a valid name by 'gogh config put github
.user <GitHub user name>': owner name may only contain alphanumeric characters or single hyphens, and cann
ot begin or end with a hyphen
[1]

List item duplicated

If the git configuration gogh.root have duplicated paths, gogh shows one path twice.

$ git config --global gogh.root ${HOME}  # GLOBAL
$ git config gogh.root ${HOME}           # LOCAL

$ mkdir -p $HOME/github.com/kyoh86/dummy
$ git -C $HOME/github.com/kyoh86/dummy init

$ gogh list --format full
/Users/kyoh86/github.com/kyoh86/dummy
/Users/kyoh86/github.com/kyoh86/dummy

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.