Skip to content

Commit

Permalink
Fix/james 2 (#24)
Browse files Browse the repository at this point in the history
* Fix james issues

* Update readme
  • Loading branch information
collindutter committed Apr 30, 2024
1 parent 9c25be9 commit 24ed658
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Today, it provides an emulator for Griptape Cloud Managed Structures, which allo
```

```bash
pipx install ./griptape-cli
pipx install ./griptape-cli --force
```
2. Verify installation
```bash
Expand Down
5 changes: 3 additions & 2 deletions griptapecli/commands/skatepark.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def register(
"""Registers a Structure with Skatepark."""
url = f"http://{host}:{port}/api/structures"
directory = os.path.abspath(directory)
click.echo(f"Registering Structure from {directory}/{main_file}")
if tldr is False:
click.echo(f"Registering Structure from {directory}/{main_file}")
response = requests.post(
url,
json={
Expand Down Expand Up @@ -160,7 +161,7 @@ def list_structures(
click.echo(f"HTTP Error: {e}")
return

structures = response.json()
structures = response.json()["structures"]
if structures:
for structure in structures:
structure_id = structure["structure_id"]
Expand Down

0 comments on commit 24ed658

Please sign in to comment.