nushell/src/commands
Yehuda Katz 4be88ff572 Modernize external parse and improve trace
The original purpose of this PR was to modernize the external parser to
use the new Shape system.

This commit does include some of that change, but a more important
aspect of this change is an improvement to the expansion trace.

Previous commit 6a7c00ea adding trace infrastructure to the syntax coloring
feature. This commit adds tracing to the expander.

The bulk of that work, in addition to the tree builder logic, was an
overhaul of the formatter traits to make them more general purpose, and
more structured.

Some highlights:

- `ToDebug` was split into two traits (`ToDebug` and `DebugFormat`)
  because implementations needed to become objects, but a convenience
  method on `ToDebug` didn't qualify
- `DebugFormat`'s `fmt_debug` method now takes a `DebugFormatter` rather
  than a standard formatter, and `DebugFormatter` has a new (but still
  limited) facility for structured formatting.
- Implementations of `ExpandSyntax` need to produce output that
  implements `DebugFormat`.

Unlike the highlighter changes, these changes are fairly focused in the
trace output, so these changes aren't behind a flag.
2019-11-01 08:45:45 -07:00
..
append.rs Format files 2019-10-30 20:04:39 +13:00
args.rs Move internal terminology to tables/rows 2019-09-06 04:23:42 +12:00
autoview.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
cd.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
classified.rs Modernize external parse and improve trace 2019-11-01 08:45:45 -07:00
clip.rs Remove uses of async_stream_block 2019-09-28 02:05:18 +02:00
command.rs Modernize external parse and improve trace 2019-11-01 08:45:45 -07:00
config.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
count.rs Suggest a column name in case one unknown column is supplied. 2019-10-22 20:10:42 -05:00
cp.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
date.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
debug.rs This commit introduces a basic help feature. We can go to it 2019-08-31 19:06:11 -05:00
echo.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
enter.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
env.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
exit.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
fetch.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
first.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
format.rs Replace crate visibility identifier with pub(crate) 2019-08-29 13:09:09 +02:00
from_bson.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
from_csv.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
from_ini.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
from_json.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
from_sqlite.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
from_ssv.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
from_toml.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
from_tsv.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
from_url.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
from_xml.rs baseline coverage for xml parsing. 2019-10-22 03:47:59 -05:00
from_yaml.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
get.rs Better error messages. 2019-10-31 04:36:08 -05:00
group_by.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
help.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
history.rs Always save history, add history command 2019-10-28 05:58:39 +13:00
last.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
lines.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
ls.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
macros.rs Move internal terminology to tables/rows 2019-09-06 04:23:42 +12:00
mkdir.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
mv.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
next.rs This commit introduces a basic help feature. We can go to it 2019-08-31 19:06:11 -05:00
nth.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
open.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
pick.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
pivot.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
plugin.rs Overhaul the coloring system 2019-10-10 19:30:04 -07:00
post.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
prepend.rs Format files 2019-10-30 20:04:39 +13:00
prev.rs This commit introduces a basic help feature. We can go to it 2019-08-31 19:06:11 -05:00
pwd.rs Removed commented out code. 2019-09-07 15:43:30 -07:00
reject.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
reverse.rs This commit introduces a basic help feature. We can go to it 2019-08-31 19:06:11 -05:00
rm.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
save.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
shells.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
size.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
skip_while.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
sort_by.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
split_column.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
split_row.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
table.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
tags.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
to_bson.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
to_csv.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
to_json.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
to_sqlite.rs Use async-stream crate to replace most async_stream_block invocations 2019-09-26 02:39:20 +02:00
to_toml.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
to_tsv.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
to_url.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
to_yaml.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
trim.rs Revert "Revert "Migrate most uses of the Span concept to Tag"" 2019-09-14 11:30:24 -05:00
version.rs Stream support (#812) 2019-10-13 17:12:43 +13:00
where_.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00
which_.rs Add descriptions to arguments 2019-10-28 18:15:35 +13:00