Port move (#833)

* Remove comment

* Fix merge not retaining LS_COLORS

* Add move command

* Add checking for non-existent columns

* Add move command examples; Disallow flag shorthand
This commit is contained in:
Jakub Žádník
2022-01-24 21:43:38 +02:00
committed by GitHub
parent 12189d417b
commit 53f41c1985
5 changed files with 336 additions and 31 deletions

View File

@ -91,6 +91,11 @@ pub enum ShellError {
#[diagnostic(code(nu::shell::nushell_failed), url(docsrs))]
NushellFailed(String),
// Only use this one if we Nushell completely falls over and hits a state that isn't possible or isn't recoverable
#[error("Nushell failed: {0}.")]
#[diagnostic(code(nu::shell::nushell_failed), url(docsrs))]
NushellFailedSpanned(String, String, #[label = "{1}"] Span),
#[error("Variable not found")]
#[diagnostic(code(nu::shell::variable_not_found), url(docsrs))]
VariableNotFoundAtRuntime(#[label = "variable not found"] Span),