▄▀▒░█░▀█▀░▄▀▀░█ ░▒█░█░▀█▀░▄▀▀░█▄█▒██▀▒█▀▄
░▀▄█░█ ▒█▒▒▄██░▀▄▀▄▀░█ ▒█▒░▀▄▄▒█▒█░█▄▄░█▀▄
npm install -g gitswitcher
- Command:
create <tableName>
- Description: Creates a new table for storing account credentials (e.g., for GitHub or GitLab).
- Example:
This command creates a table named
gitswitcher create github
github
.
- Command:
delete-table <tableName>
- Description: Deletes a table from the database.
- Example:
This command deletes the table named
gitswitcher delete-table github
github
.
- Command:
add <tableName> <name> <email> [token]
- Description: Adds a new account to the specified table. An optional
token
parameter 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"
- 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 ID
gitswitcher delete-account github 1
1
from thegithub
table.
-
Command:
show <tableName>
-
Description: Displays a list of all accounts in the specified table.
-
Example:
gitswitcher show github
This command displays all accounts stored in the
github
table.Output Example:
Accounts in folder 'github': 1: DenisYasyuchenya 2: AnotherUser 3: ExampleUser
-
Command:
show-folders
-
Description: Lists all tables in the database, excluding system tables.
-
Example:
gitswitcher show-folders
This command displays all tables (e.g.,
github
,gitlab
).Output Example:
Your folders: github gitlab
- 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 ID
gitswitcher use github 1
1
in thegithub
table.