2.0.1 • Published 1 year ago
gitswitcher v2.0.1
▄▀▒░█░▀█▀░▄▀▀░█ ░▒█░█░▀█▀░▄▀▀░█▄█▒██▀▒█▀▄
░▀▄█░█ ▒█▒▒▄██░▀▄▀▄▀░█ ▒█▒░▀▄▄▒█▒█░█▄▄░█▀▄GitSwitcher - Program that helps you switch between your git-hub, git-lab & bitbucket accounts.
GitSwitcher CLI Command Guide
0. Installation
npm install -g gitswitcher
1. Create a Table for Storing Accounts
- Command:
create <tableName> - Description: Creates a new table for storing account credentials (e.g., for GitHub or GitLab).
- Example:
This command creates a table namedgitswitcher create githubgithub.
2. Delete a Table
- Command:
delete-table <tableName> - Description: Deletes a table from the database.
- Example:
This command deletes the table namedgitswitcher delete-table githubgithub.
3. Add an Account to a Table
- Command:
add <tableName> <name> <email> [token] - Description: Adds a new account to the specified table. An optional
tokenparameter can be provided to store a token or password. - Example (without token):
gitswitcher add github "YourName" "your@email.com" - Example (with token):
gitswitcher add gitlab "YourName" "your@email.com" "your_personal_access_token_or_password"
4. Delete an Account from a Table
- Command:
delete-account <tableName> <identifier> - Description: Deletes an account from the specified table using either its ID or name.
- Example:
This command deletes the account with IDgitswitcher delete-account github 11from thegithubtable.
5. Show All Accounts in a Table
- Command:
show <tableName> - Description: Displays a list of all accounts in the specified table.
Example:
gitswitcher show githubThis command displays all accounts stored in the
githubtable.Output Example:
Accounts in folder 'github': 1: DenisYasyuchenya 2: AnotherUser 3: ExampleUser
6. Show All Tables (Folders) in the Database
- Command:
show-folders - Description: Lists all tables in the database, excluding system tables.
Example:
gitswitcher show-foldersThis command displays all tables (e.g.,
github,gitlab).Output Example:
Your folders: github gitlab
7. Switch to an Account
- Command:
use <tableName> <id> - Description: Switches the current Git configuration to the specified account by its ID.
- Example:
This command switches the current Git configuration to the account with IDgitswitcher use github 11in thegithubtable.