Skip to content

Commit

Permalink
Merge pull request #16 from kodexa-ai/kodexa-platform-json-check
Browse files Browse the repository at this point in the history
Kodexa Platform JSON check
  • Loading branch information
romekodexa authored Apr 3, 2024
2 parents b1a8356 + fc66f7d commit 64ccee8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions kodexa_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,9 +969,15 @@ def platform(_: Info, python: bool, show_token: bool):
if show_token:
print(f"Access Token: {get_current_access_token()}")
kodexa_version = KodexaPlatform.get_server_info()
print(f"Environment: {kodexa_version['environment']}")
print(f"Version: {kodexa_version['version']}")
print(f"Release: {kodexa_version['release']}")

try:
print(kodexa_version)
print(f"Environment: {kodexa_version['environment']}")
print(f"Version: {kodexa_version['version']}")
print(f"Release: {kodexa_version['release']}")
except:
print("Unable to get environment details. Does this environment require a Cloudflare token?")

if python:
print("\nPython example:\n\n")
print(f"from kodexa import KodexaClient")
Expand Down

0 comments on commit 64ccee8

Please sign in to comment.