Open effect-bot opened 5 days ago
The idea would be to have an Arguments
(name ?) service which you could access to get the original CLI arguments. Not sure if this is more or less useful than just accessing process.argv
or similar in your handlers.
Will need to think / discuss.
Summary
In the conversation, a user named leighman_ asks if there's a way to access the original command-line arguments within a
Command
in the Effect Typescript library. They suggest usingprocess.argv
as a possible solution. Another user, maxwellbrown, responds by stating that this functionality isn't currently built-in, but suggests that the library could potentially expose the original arguments as anArguments
service for command handlers to access.Key Takeaways:
Command
.process.argv
as a workaround to access these arguments.Arguments
service to make original CLI arguments accessible in command handlers.Discord thread
https://discord.com/channels/795981131316985866/1304025127087767573