1 GitHub Authentication
On first run, the CLI requests the access required for the tool to function. Follow the staged flow below.
exc login
1) Permission and consent prompt
- This tool requests access to repositories for ANALYSIS purposes only. - IT DOES NOT PERFORM ANY WRITE, MODIFY, OR TRIGGER OPERATIONS. - Permissions are managed by GitHub and can be revoked at any time. Do you want to continue? (y/N):
Users can choose Y to continue or N to cancel. To proceed, select Y.
2) Device code and browser step
======================================== [ACTION] First copy your one-time code: 9A24-9C5C ======================================== URL: https://github.com/login/device Press ENTER to open GitHub in your browser...
Press Enter to open GitHub automatically, or open the URL manually. On the opened page, enter the one-time code 9A24-9C5C to grant access.
Note: your one-time code will be different on your device; this is only a sample output.
3) Successful sign-in output
[SUCCESS] Authentication successful! Welcome, <username>. Let's start the initial analysis using: exc analysis <owner/repo>.
4) Output when cancelled
[CANCELLED] Authentication cancelled by user.
Note: To revoke account access and sign out, use the exc logout command.