Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(entrypoints): add command to list entrypoints #555

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

maksadbek
Copy link
Collaborator

@maksadbek maksadbek commented Jun 25, 2024

Add entrypoints:list command to get all entrypoints of project:

bright-cli entrypoints:list --project <project-id>

Output:
A list of all entry points for the specified project.

Benefits:

  • Streamlines the process of retrieving project entry points directly from the CLI.
  • Enhances integration with CI/CD pipelines.
  • Aligns bright-cli capabilities with our existing API features.

Example:

$ bright-cli entrypoints:list --token <api-key> --project <project-id>
[ { "id": "s7vJhe2nmwJZXr1dpxbUmg", "url": "https://brightsec.com" } ]

@maksadbek maksadbek self-assigned this Jun 25, 2024
@maksadbek maksadbek force-pushed the feat-#PAP-1063/get-entrypoints-of-project branch from b662c9e to 3d7697c Compare June 26, 2024 20:08
@maksadbek maksadbek added the Type: enhancement New feature or request. label Jun 27, 2024
@maksadbek maksadbek force-pushed the feat-#PAP-1063/get-entrypoints-of-project branch from c883367 to c4c7e70 Compare June 27, 2024 12:18
src/Commands/GetEntryPoints.ts Outdated Show resolved Hide resolved
src/Commands/GetEntryPoints.ts Outdated Show resolved Hide resolved
src/Commands/GetEntryPoints.ts Outdated Show resolved Hide resolved
src/Commands/GetEntryPoints.ts Outdated Show resolved Hide resolved
src/Commands/GetEntryPoints.ts Outdated Show resolved Hide resolved
@derevnjuk derevnjuk changed the title feat: add get-entrypoints command feat(entrypoints): add command to list entrypoints Jun 27, 2024
@derevnjuk derevnjuk enabled auto-merge (squash) June 27, 2024 15:03
@derevnjuk derevnjuk merged commit 7f343be into next Jun 27, 2024
6 checks passed
@derevnjuk derevnjuk deleted the feat-#PAP-1063/get-entrypoints-of-project branch June 27, 2024 15:04
@derevnjuk
Copy link
Member

@maksadbek oh, I missed that while review. We should cover the new features with tests. e.g, RestEntryPoints by unit tests, and the command by e2e. Please write these tests in a separate PR once you have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement New feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants