git-user

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

git-user

git switch user tool testing & learning cli

switches git user , using git config and copies the specified key file to id_rsa file in the .ssh profile

Usage

git-user a cli util to switch between git user profiles
 For example:
 add users:
 git-user add
 
 list users:
 git-user -l

 switch user:
 git-user -u username
 git-user --user username
 
 show current git config:
 git-user status

Usage:
  git-user [flags]
  git-user [command]

Available Commands:
  add         add users to the git-user config
  help        Help about any command
  list        List users
  status      Show current git config

Flags:
      --config string   config file (default is $HOME/.git-user.yaml)
  -h, --help            help for git-user
  -l, --list            list users from the config file.
  -t, --toggle          Help message for toggle
  -u, --user string     user profile

Use "git-user [command] --help" for more information about a command.

refs

https://github.com/spf13/cobra
https://github.com/spf13/viper

Documentation

Overview

Copyright © 2021 M van der Ploeg

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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