New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gbruce

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gbruce

gitBruce CLI for Bruce Web team

latest
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

📦 gBruce - A git CLI for Bruce.work

A simple CLI to facilitate and automate some git actions, created and optimized for Bruce's conventions.

Requires Node.js v14+

INSTALLATION

Recommanded (with npx)

Simply start the script with:

npx gbruce -- [action] [option]

The CLI is more useful when coupled with a terminal alias. To create one :

For Zsh

nano .zshrc 

For Bash

nano .bashrc 

And then, at the bottom of the file add this line:

alias aCustomAlias="npx gbruce --"

You can now start the CLI directly by using your alias aCustomAlias on any project.

Globally

You can also install the CLI as a global NPM package like so

npm install -g gbruce

You can now create an alias like explained above by pasting this line in the correct file

alias aCustomAlias="gbruce --"

Per project

Don't do it, it's useless for the moment

HOW TO USE

The CLI allows 4 actions (for the moment).

gbruce branch

This action will guide you to create a branch with the good naming convention. It will:

  • Automatically checkout and pull changes from the specified base branch (meaning you can call this action from any branch).
  • Create a branch up-to-date with the base branch, and correct naming convention.

gbruce commit [option]

This action will guide you to create a commit with the good naming convention. It will:

  • Create a commit step by step with all the information needed for a valid commit (or I might fuck you up).
  • (optional) Pull and rebase the base branch specified.
  • (optional) Push the branch to remote (it'll add it to the remote if it's a new branch).
OptionDescriptionValue
-rTo use if you want to make a rebase after the commitfalse
-pTo use if you want to push your changes directly after the commitfalse

gbruce push [option]

This action will make a push action with some automation. It will:

  • Checkout on the specified branch (or stay on current branch), meaning that you can call this action from any branch.
  • Push the branch and its changes (will automatically add it to remote if the branch doesn't exist).
OptionDescriptionValue
-b <name-of-the-branch-to-push>To use only if you want to push an other branch than -><current-branch>
-fSpecify if you want to push --forcefalse

gbruce help

This action will show you all the available actions and their accepted argument(s)

Keywords

git

FAQs

Package last updated on 16 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts