Skip to content

Commit 368fcb3

Browse files
authored
Enhancement: Add information about Shared policy (#8)
* run pre-commit * modify list and add list-share command * add status-share command * update click version * exclude log files * add create-shared-policy command * update clone command to use API v3 * refactor retrieve command * add pandas * upgrade version, add short arguments * handle error when shared policy does not have active property * add retrieve-shared-policy command * update create_shared_policy * new functions and refactor f-string * update cli version * refactor update command * add update-share command * add get_activation_status command * combine list, add cloudlets command * show result alphabetically * combine retrieve command * merge status command * merge available-shared-policies command into cloudlets command * merge create-policy command * merge update command * refactor: policy-endpoints command * remove clone using API v2 * refactor: activation-status command * combine activate command * refactor activation-status command * refactor: remove unused code * refactor: code cleanup * refactor: list command * refactor: make help command consistent * refactor: retrieve command * refactor: policy_endpoint command * bugfix: cloudlets command * save matchrules to excel * add files * correct return value on get_schema * update content (WIP) * add TBD message * update local install section * show account name information if -a is provided * modify update_shared_policy_detail * refactor: make README.md and CLI help consistent * fix typo and update summary of functionality * minor: remove debugging/change message * bugfix: activation-status not showing for API v2 * bugfix: activation on v3 * bugfix: policy-endpoint * bugfix: retrieve * update Local Install * bugfix: update * bugfix: variable not initialized * bugfix: IG not support matchURL * create new version for shared policy * bugfix: cloudlets command fail
1 parent 98d949d commit 368fcb3

8 files changed

Lines changed: 1586 additions & 852 deletions

File tree

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*__pycache__*
2+
.DS_Store
3+
.venv
4+
.vscode
5+
logs
6+
*.log
7+
*.xlsx
8+
*.json
9+
*.sh
10+
!cli.json

.pre-commit-config.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: debug-statements
8+
- id: double-quote-string-fixer
9+
- id: requirements-txt-fixer
10+
- id: check-case-conflict
11+
- id: check-json
12+
- id: mixed-line-ending
13+
# - id: pretty-format-json
14+
- repo: https://github.com/asottile/reorder_python_imports
15+
rev: v3.9.0
16+
hooks:
17+
- id: reorder-python-imports
18+
exclude: ^(pre_commit/resources/|testing/resources/python3_hooks_repo/)
19+
args: [--py37-plus, --add-import, "from __future__ import annotations"]
20+
- repo: https://github.com/asottile/pyupgrade
21+
rev: v3.2.0
22+
hooks:
23+
- id: pyupgrade
24+
args: [--py37-plus]
25+
- repo: https://github.com/PyCQA/flake8
26+
rev: 5.0.4
27+
hooks:
28+
- id: flake8
29+
args:
30+
- "--max-line-length=140"
31+
- "--max-complexity=18"
32+
#- "--ignore=E402,F841,F401,E302,E305,E128,E265,C901,F403,F405,E722,W504,E241"
33+
- "--ignore=E127,E501,E124,E125,E128,E722,F841,C901,F401"

0 commit comments

Comments
 (0)