@@ -36,7 +36,12 @@ async def _patch_destination(ctx, destination_id, data, pretty):
3636 raise ClickException (f"Failed to patch destination: { e } " )
3737
3838
39- async def _list_destinations (ctx , archived , is_owner , can_write , is_default , pretty ):
39+ async def _list_destinations (ctx ,
40+ archived ,
41+ is_owner ,
42+ can_write ,
43+ is_default ,
44+ pretty ):
4045 async with destinations_client (ctx ) as cl :
4146 try :
4247 response = await cl .list_destinations (archived ,
@@ -110,13 +115,17 @@ async def _get_default_destination(ctx, pretty):
110115 default = None ,
111116 help = """Set to true to include only destinations the user can modify,
112117 false to exclude them.""" )
113- @click .option (
114- '--is-default' ,
115- type = bool ,
116- default = None ,
117- help = """Set to true to include only the default destination,
118+ @click .option ('--is-default' ,
119+ type = bool ,
120+ default = None ,
121+ help = """Set to true to include only the default destination,
118122 false to exclude it.""" )
119- async def list_destinations (ctx , archived , is_owner , can_write , is_default , pretty ):
123+ async def list_destinations (ctx ,
124+ archived ,
125+ is_owner ,
126+ can_write ,
127+ is_default ,
128+ pretty ):
120129 """
121130 List destinations with optional filters
122131
@@ -127,7 +136,12 @@ async def list_destinations(ctx, archived, is_owner, can_write, is_default, pret
127136
128137 planet destinations list --archived false --is-owner true --can-write true
129138 """
130- await _list_destinations (ctx , archived , is_owner , can_write , is_default , pretty )
139+ await _list_destinations (ctx ,
140+ archived ,
141+ is_owner ,
142+ can_write ,
143+ is_default ,
144+ pretty )
131145
132146
133147@command (destinations , name = "get" )
@@ -677,4 +691,4 @@ async def get_default_destination(ctx, pretty):
677691
678692 planet destinations default get
679693 """
680- await _get_default_destination (ctx , pretty )
694+ await _get_default_destination (ctx , pretty )
0 commit comments