Conversation
🦋 Changeset detectedLatest commit: d02a59e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
vicb
left a comment
There was a problem hiding this comment.
Looks great, thanks for the PR.
Does it still work as expected when there is a --?
I'll take one more look tomorrow
Unknown args and args after If |
Is it what we want? |
vicb
left a comment
There was a problem hiding this comment.
Looks good.
I think more comments might help maintaining this code in the future
Yep, that's true, although people were complaining when we wanted people to use What would you think of us throwing an error when people pass |
|
|
||
| const nextAppDir = process.cwd(); | ||
| export function runCommand() { | ||
| let y = yargs(process.argv.slice(2)) |
There was a problem hiding this comment.
Anything after -- are considered non-option arguments and put into args._ by yargs
|
I took a deeper look and have some comments: First I really like the changes, I fell like the CLI is much nice now, thanks for working on this. I do have a few comments:
We use to recommend IIUC this command will now (maybe before also?) use a different env for populating the cache than for deploying.
I see
Would be nice to ba able to solve this
IIUC I wouldn't mind more duplication in each of the command to make the code easier to follow/extend i.e. each command would: printHeader();
compileConfig() or retieveCompiledConfig();
readWranglerConfig();Each of this function could be helpers (i.e. Maybe one thing we could do then is to move Thinking forward if we add new commands, we might have to add options to |
So would you like to preserve the old behaviour, or throw an error if it's used after the
I don't get this - that looks like the dependencies aren't installed.
Sure, I'll change it. |
vicb
left a comment
There was a problem hiding this comment.
Thank for this PR!
Great code and nice to have some help on the CLI now!
One nit about an error message when the config is not found.
Co-authored-by: Victor Berchet <victor@suumit.com>




Changes
outputarg as it was never used.--envand--configbecome proper first class citizens.Replaces #790
Commands Tested
buildpreviewdeployuploadpopulateCache