Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
subcommands should provide the click context when creating CLI sessio…
…ns. This enables the session to pick-up options set by the root command.
  • Loading branch information
carl-adams-planet committed Oct 6, 2025
commit 96f56cce62ae550a00326c4fd7ed6a7abe0ed449
2 changes: 1 addition & 1 deletion planet/cli/destinations.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@asynccontextmanager
async def destinations_client(ctx):
async with CliSession() as sess:
async with CliSession(ctx) as sess:
cl = DestinationsClient(sess, base_url=ctx.obj['BASE_URL'])
yield cl

Expand Down
2 changes: 1 addition & 1 deletion planet/cli/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@asynccontextmanager
async def features_client(ctx):
async with CliSession() as sess:
async with CliSession(ctx) as sess:
cl = FeaturesClient(sess, base_url=ctx.obj['BASE_URL'])
yield cl

Expand Down
2 changes: 1 addition & 1 deletion planet/cli/mosaics.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

@asynccontextmanager
async def client(ctx):
async with CliSession() as sess:
async with CliSession(ctx) as sess:
cl = MosaicsClient(sess, base_url=ctx.obj['BASE_URL'])
yield cl

Expand Down