use create_default_context from nu-cmd-lang#9454
Merged
sholderbach merged 3 commits intonushell:mainfrom Jun 17, 2023
Merged
Conversation
Member
|
This kind of changes the benchmark as this a much smaller set of commands in the engine state. nushell/crates/nu-cli/tests/support/completions_helpers.rs Lines 13 to 15 in 86f12ff |
Member
Author
|
@sholderbach fn create_default_context() -> EngineState {
nu_command::add_shell_command_context(nu_cmd_lang::create_default_context())
} inside the benchmark as well? 😋 |
Member
|
That would be the codeduplication driven escape-hatch to some exquisite feature-flag-f***ery one could do to conditionally make it available from |
Member
Author
|
mm yeah but the current changes of the PR look easier, right? 😮 |
Add a helper to create the command context. Reflects a realistic number of entries in the engine state.
Member
Author
|
oooh i see @sholderbach, thanks for the patch 😌 |
amtoine
added a commit
to amtoine/nushell
that referenced
this pull request
Jun 21, 2023
…ands-to-nu-cmd-base this should solve the `benches/` issue fixed in nushell#9454
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
a recent addition must have removed the
create_default_contextcommand fromnu_command, which breaks the benchmarks 😮before this PR
gives a bunch of
and
cargo benchdoes not run...with this PR
is not happy and the benchmarks run again with
cargo bench