Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions githubREADME.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ npm unlink
bl [command] <option>
```

| Command | Description |
| --------------------- | ------------------------------------ |
| `pick` | checkout git branch from select list |
| `create` | create new git branch |
| `delete` | delete git branch from select list |
| `-v --version` | show package version |
| `-h --help` | show help menu |
| `[command] -h --help` | show help menu for specific command |
| Command | Description |
| --------------------- | ------------------------------------------------------ |
| `pick` | checkout git branch from select list with fuzzy search |
| `create` | create new git branch |
| `delete` | delete git branch from select list with fuzzy search |
| `-v --version` | show package version |
| `-h --help` | show help menu |
| `[command] -h --help` | show help menu for specific command |

## Demo

Expand Down
16 changes: 8 additions & 8 deletions npmREADME.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ npm install -g @thimlohsedev/branch_lightyear
bl [command] <option>
```

| Command | Description |
| --------------------- | ------------------------------------ |
| `pick` | checkout git branch from select list |
| `create` | create new git branch |
| `delete` | delete git branch from select list |
| `-v --version` | show package version |
| `-h --help` | show help menu |
| `[command] -h --help` | show help menu for specific command |
| Command | Description |
| --------------------- | ------------------------------------------------------ |
| `pick` | checkout git branch from select list with fuzzy search |
| `create` | create new git branch |
| `delete` | delete git branch from select list with fuzzy search |
| `-v --version` | show package version |
| `-h --help` | show help menu |
| `[command] -h --help` | show help menu for specific command |

## Demo

Expand Down
147 changes: 124 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thimlohsedev/branch_lightyear",
"version": "1.8.0",
"description": "The comfort of Git in an IDE right in the terminal",
"version": "1.9.0",
"description": "The comfort of some pretty sleek Git commands right in the terminal",
"bin": {
"@thimlohsedev/bl": "bin/branch_lightyear",
"bl": "bin/branch_lightyear"
Expand Down Expand Up @@ -58,6 +58,7 @@
"license": "MIT",
"dependencies": {
"chalk": "^4.1.0",
"configstore": "^5.0.1",
"esm": "^3.2.25",
"fuzzy": "^0.1.3",
"inquirer": "^7.3.3",
Expand All @@ -73,6 +74,7 @@
"@types/minimist": "^1.2.0",
"@types/node": "^14.11.2",
"@types/ramda": "^0.27.19",
"@types/configstore": "^4.0.0",
"@typescript-eslint/eslint-plugin": "^4.3.0",
"@typescript-eslint/parser": "^4.3.0",
"eslint": "^7.10.0",
Expand Down
5 changes: 4 additions & 1 deletion src/commands/helpHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ const helpDescription: Record<string, string> = {
pick: `
bl pick <option>

-r, --remote ....... checkout remote branch with fuzzy search functionality
-r, --remote ....... checkout remote branch with fuzzy search functionality
(Note: will fetch from cache or fetch and automatically save most recent list in cache for 5 minutes)
-f --fresh ......... pick branch from fresh remote
(Note: will overwrite stored list of remote branches in cache with new list [remote only])
`,
create: `
bl create <option>
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pickHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export default async (argv: ParsedArgs): Promise<void | Error> => {
if (!argv.r) {
return await pickLocalBranch()
}
return await pickRemoteBranch()
return await pickRemoteBranch({ freshFetch: !!argv.f })
}
3 changes: 2 additions & 1 deletion src/entry/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import { ErrorHandler } from '../handlers'
const parseArgs = (rawArgs: string[]) =>
minimist(rawArgs.slice(2), {
string: ['pick', 'delete', 'create'],
boolean: ['version', 'help', 'multiple', 'remote', 'upstream'],
boolean: ['version', 'help', 'multiple', 'remote', 'upstream', 'fresh'],
alias: {
v: 'version',
h: 'help',
m: 'multiple',
r: 'remote',
u: 'upstream',
f: 'fresh',
},
})

Expand Down
Loading