You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.print("[red]Project is not linked to the platform.[/red]")
2886
+
console.print(
2887
+
"Run [bold]cf link[/bold] to connect this project, or [bold]cf init[/bold] to create a new one."
2888
+
)
2889
+
raiseclick.Abort()
2890
+
2891
+
config=load_user_config()
2892
+
ifnotconfig.get("api_key"):
2893
+
console.print("[red]Not logged in.[/red] Run [bold]cf login[/bold] before submitting.")
2894
+
raiseclick.Abort()
2895
+
2896
+
try:
2897
+
_api_post(f"/projects/{platform_id}/submit", {})
2898
+
console.print("[green]✓ Project submitted for review[/green]")
2899
+
exceptSystemExit:
2900
+
raiseclick.Abort()
2901
+
2863
2902
@main.command('confirm')
2864
2903
@click.option('--project-root', required=False, type=click.Path(exists=True, file_okay=False), help='Path to the local ChipFoundry project directory (defaults to current directory if .cf/project.json exists).')
2865
2904
@click.option('--sftp-host', default=DEFAULT_SFTP_HOST, show_default=True, help='SFTP server hostname.')
0 commit comments