Skip to content

Commit

Permalink
Merge pull request #199 from pieces-app/onboarding
Browse files Browse the repository at this point in the history
run onboarding
  • Loading branch information
bishoy-at-pieces authored Oct 22, 2024
2 parents bfabf8f + ce67d0b commit ee9154c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/pieces/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ def run(self):
print_help()
return

if not Settings.pieces_client.application.onboarded:
return onboarding_command()

# Check if the command needs Pieces OS or not
if arg not in ['help',"-v","--version","onboarding","install", "feedback", "contribute"]:
Settings.startup()
Expand Down
3 changes: 2 additions & 1 deletion src/pieces/commands/onboarding.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def get_prompt():
os_type = platform.system()

if os_type == "Windows":
prompt = f"{path}"
prompt = f"{path}> "
elif os_type == "Linux":
prompt = f"{path}$ "
else:
Expand Down Expand Up @@ -188,5 +188,6 @@ def onboarding_command(**kwargs):
console.print("Thank you for using Pieces CLI!")
console.print("You are now 10x more productive developer with Pieces")
console.print("For more information visit https://docs.pieces.app/extensions-plugins/cli")
Settings.pieces_client.connector_api.onboarded(Settings.pieces_client.application.id, True)


0 comments on commit ee9154c

Please sign in to comment.