This repository has been archived by the owner on Jul 12, 2022. It is now read-only.
New credential for adding private repositories with rit add repo
#986
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off: guillaume.falourd@zup.com.br
Referred to: #833 and closes: #800
Description
rit add repo
a specific credential to add private repositories, so that the user does not need to inform a token each time the command is executed.How to verify it
In its first execution, when adding a private repository, the command will request the token, as it already did. However, the command now saves this token in a credential.
Example
After executing the
rit add repo
command adding a private repository again, use therit list credential
command, to verify that a new credential has been created in the current environment.Example
Changelog
rit add repo
command.This pull request generated the following artifacts.
To test the health and quality of this implementation, download the respective binary for your operating system, unzip and directly run the binary like the examples below.
Windows
Download the file: rit-windows.zip
Unzip to some folder like:
C:\home\user\downloads\pr986
Access the folder:
cd C:\home\user\downloads\pr986
Directly call the binary:
.\rit.exe --version
or.\rit.exe name of formula
Linux
Download the file: rit-linux.zip
Unzip to some folder like:
/home/user/downloads/pr986
Access the folder:
cd /home/user/downloads/pr986
Assign execute permission to binary:
chmod +x ./rit
Directly call the binary:
./rit --version
or./rit name of formula
MacOS
Download the file: rit-macos.zip
Unzip to some folder like:
/home/user/downloads/pr986
Access the folder:
cd /home/user/downloads/pr986
Assign execute permission to binary:
chmod +x ./rit
Directly call the binary:
./rit --version
or./rit name of formula