Skip to content

Commit 96f56cc

Browse files
subcommands should provide the click context when creating CLI sessions. This enables the session to pick-up options set by the root command.
1 parent adde5eb commit 96f56cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

planet/cli/destinations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
@asynccontextmanager
1313
async def destinations_client(ctx):
14-
async with CliSession() as sess:
14+
async with CliSession(ctx) as sess:
1515
cl = DestinationsClient(sess, base_url=ctx.obj['BASE_URL'])
1616
yield cl
1717

planet/cli/features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
@asynccontextmanager
1616
async def features_client(ctx):
17-
async with CliSession() as sess:
17+
async with CliSession(ctx) as sess:
1818
cl = FeaturesClient(sess, base_url=ctx.obj['BASE_URL'])
1919
yield cl
2020

planet/cli/mosaics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
@asynccontextmanager
1515
async def client(ctx):
16-
async with CliSession() as sess:
16+
async with CliSession(ctx) as sess:
1717
cl = MosaicsClient(sess, base_url=ctx.obj['BASE_URL'])
1818
yield cl
1919

0 commit comments

Comments
 (0)