Move Session Tokens Under Labs · Entire

Move Entire Sessions Tokens Under Labs

To enhance clarity and organization within the project, the goal is to move the existing command entire session tokens so that it is displayed under the labs section in the CLI help.

Approach

  1. Identify the existing command structure: The existing command structure for session tokens should remain intact. The only change is how it is presented under the labs section.
  2. Update Command Reference: Modify the labs.go file to include the command reference for entire session tokens.
  3. Test Verification: Ensure that the command still operates correctly and passes all existing tests.

Changes Made

Code Example

    // In labs.go, add the session tokens command to the labs overview
    experimentalCommands = append(experimentalCommands, 
        Command{Name: "session tokens", Alias: "sessions tokens"},
    )

Testing

To confirm that the command functions as intended following the update:

  1. Run focused tests related to labs and session tokens.
  2. Validate the CLI output to ensure it reflects the inclusion under labs.

Command to Run Tests

go test ./cmd/entire/cli -run 'TestLabs|TestSessionsCmd_TokensSubcommand' -count=1

Conclusion

This approach effectively reorganizes the commands for better structure without altering command functionality, demonstrating an efficient update in the codebase.