mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 15:03:14 +02:00
Remove --encoding
argument during register plugin (#6486)
* first implement new plugin protocol core logic * fix debug body construct * fix output message from plugin * finish plugin commands calling * fix tests and adjust plugin_custom_value call * fmt code * fmt code, fix clippy * add FIXME comment * change from FIXME to TODO
This commit is contained in:
@ -6,7 +6,7 @@ use nu_test_support::playground::Playground;
|
||||
fn chooses_highest_increment_if_given_more_than_one() {
|
||||
let actual = nu_with_plugins!(
|
||||
cwd: "tests/fixtures/formats",
|
||||
plugin: ("json", "nu_plugin_inc"),
|
||||
plugin: ("nu_plugin_inc"),
|
||||
"open cargo_sample.toml | first 1 | inc package.version --major --minor | get package.version"
|
||||
);
|
||||
|
||||
@ -14,7 +14,7 @@ fn chooses_highest_increment_if_given_more_than_one() {
|
||||
|
||||
let actual = nu_with_plugins!(
|
||||
cwd: "tests/fixtures/formats",
|
||||
plugin: ("json", "nu_plugin_inc"),
|
||||
plugin: ("nu_plugin_inc"),
|
||||
// Regardless of order of arguments
|
||||
"open cargo_sample.toml | first 1 | inc package.version --minor --major | get package.version"
|
||||
);
|
||||
@ -35,7 +35,7 @@ fn by_one_with_field_passed() {
|
||||
|
||||
let actual = nu_with_plugins!(
|
||||
cwd: dirs.test(),
|
||||
plugin: ("json", "nu_plugin_inc"),
|
||||
plugin: ("nu_plugin_inc"),
|
||||
"open sample.toml | inc package.edition | get package.edition"
|
||||
);
|
||||
|
||||
@ -56,7 +56,7 @@ fn by_one_with_no_field_passed() {
|
||||
|
||||
let actual = nu_with_plugins!(
|
||||
cwd: dirs.test(),
|
||||
plugin: ("json", "nu_plugin_inc"),
|
||||
plugin: ("nu_plugin_inc"),
|
||||
"open sample.toml | get package.contributors | inc"
|
||||
);
|
||||
|
||||
@ -77,7 +77,7 @@ fn semversion_major_inc() {
|
||||
|
||||
let actual = nu_with_plugins!(
|
||||
cwd: dirs.test(),
|
||||
plugin: ("json", "nu_plugin_inc"),
|
||||
plugin: ("nu_plugin_inc"),
|
||||
"open sample.toml | inc package.version -M | get package.version"
|
||||
);
|
||||
|
||||
@ -98,7 +98,7 @@ fn semversion_minor_inc() {
|
||||
|
||||
let actual = nu_with_plugins!(
|
||||
cwd: dirs.test(),
|
||||
plugin: ("json", "nu_plugin_inc"),
|
||||
plugin: ("nu_plugin_inc"),
|
||||
"open sample.toml | inc package.version --minor | get package.version"
|
||||
);
|
||||
|
||||
@ -119,7 +119,7 @@ fn semversion_patch_inc() {
|
||||
|
||||
let actual = nu_with_plugins!(
|
||||
cwd: dirs.test(),
|
||||
plugin: ("json", "nu_plugin_inc"),
|
||||
plugin: ("nu_plugin_inc"),
|
||||
"open sample.toml | inc package.version --patch | get package.version"
|
||||
);
|
||||
|
||||
@ -140,7 +140,7 @@ fn semversion_without_passing_field() {
|
||||
|
||||
let actual = nu_with_plugins!(
|
||||
cwd: dirs.test(),
|
||||
plugin: ("json", "nu_plugin_inc"),
|
||||
plugin: ("nu_plugin_inc"),
|
||||
"open sample.toml | get package.version | inc --patch"
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user