2.0.1 • Published 10 months ago

gitswitcher v2.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago
                   ▄▀▒░█░▀█▀░▄▀▀░█ ░▒█░█░▀█▀░▄▀▀░█▄█▒██▀▒█▀▄
                  ░▀▄█░█ ▒█▒▒▄██░▀▄▀▄▀░█ ▒█▒░▀▄▄▒█▒█░█▄▄░█▀▄

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:
    gitswitcher create github
    This command creates a table named github.

2. Delete a Table

  • Command: delete-table <tableName>
  • Description: Deletes a table from the database.
  • Example:
    gitswitcher delete-table github
    This command deletes the table named github.

3. Add an Account to a Table

  • 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"

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:
    gitswitcher delete-account github 1
    This command deletes the account with ID 1 from the github table.

5. Show All Accounts in a 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

6. Show All Tables (Folders) in the Database

  • 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

7. Switch to an Account

  • Command: use <tableName> <id>
  • Description: Switches the current Git configuration to the specified account by its ID.
  • Example:
    gitswitcher use github 1
    This command switches the current Git configuration to the account with ID 1 in the github table.
2.0.1

10 months ago

2.0.0

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago