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

add simple cli entrypoints for api functionality #26

Merged
merged 8 commits into from
May 27, 2024
Merged

Conversation

vdloo
Copy link
Member

@vdloo vdloo commented May 25, 2024

like:

hypernode-api-python]$ ls bin/
block_attack				get_app_flavor				get_product_info
check_payment_information_for_app	get_app_info				get_sla
check_xgrade				get_available_backups_for_app		get_slas
command					get_block_attack_descriptions		get_whitelist_options
create_brancher				get_cluster_relations			get_whitelist_rules
destroy_brancher			get_current_product_for_app		validate_app_name
get_active_branchers			get_eav_description			xgrade
get_active_products			get_flows
get_app_configurations			get_next_best_plan_for_app

hypernode-api-python]$ ./bin/get_sla --help
usage: get_sla [-h] sla_code

Get a specific SLA.

$ ./bin/get_sla sla-standard
{
  "id": 123,
  "code": "sla-standard",
  "name": "SLA Standard",
  "price": 1234,
  "billing_period": 1,
  "billing_period_unit": "month"
}

positional arguments:
  sla_code    The code of the SLA to get

optional arguments:
  -h, --help  show this help message and exit

like:
```
$ ls bin/
block_attack			get_app_flavor			get_block_attack_descriptions	get_flows			get_sla				get_whitelist_rules
command				get_app_info			get_cluster_relations		get_next_best_plan_for_app	get_slas			validate_app_name
get_app_configurations		get_available_backups_for_app	get_eav_description		get_product_info		get_whitelist_options

hypernode-api-python]$ ./bin/get_sla --help
usage: get_sla [-h] sla_code

Get a specific SLA.

$ ./bin/get_sla sla-standard
{
  "id": 123,
  "code": "sla-standard",
  "name": "SLA Standard",
  "price": 1234,
  "billing_period": 1,
  "billing_period_unit": "month"
}

positional arguments:
  sla_code    The code of the SLA to get

optional arguments:
  -h, --help  show this help message and exit
```
@vdloo vdloo force-pushed the add-cli-entrypoint branch from 8dada70 to 91aaa9e Compare May 25, 2024 13:45
@vdloo vdloo force-pushed the add-cli-entrypoint branch from f98696d to 43198c7 Compare May 25, 2024 18:18
Copy link

@tdgroot tdgroot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition! :)

@vdloo vdloo merged commit ba41f05 into master May 27, 2024
5 checks passed
@vdloo vdloo deleted the add-cli-entrypoint branch May 27, 2024 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants