Skip to content

Commit 5489084

Browse files
committed
Sort shuttle list by nearest deadline first in cf init
Made-with: Cursor
1 parent 7360023 commit 5489084

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

chipfoundry_cli/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ def init(project_root, shuttle, description):
360360
try:
361361
shuttles = _api_get("/shuttles/available")
362362
if shuttles:
363+
shuttles.sort(key=lambda s: s.get('tapeout_date', '9999-12-31'))
363364
console.print("\n[bold]Available shuttles:[/bold]")
364365
for i, s in enumerate(shuttles, 1):
365366
deadline = s.get('tapeout_date', '')

0 commit comments

Comments
 (0)