Commit Graph

5000 Commits

Author SHA1 Message Date
2dcbf78385 Merge pull request #633 from androbtech/conf
config test harness.
2019-09-10 05:42:44 -05:00
11ef007491 Paths can be displayed as strings. 2019-09-10 05:28:15 -05:00
f61144006f config test harness. 2019-09-10 05:08:01 -05:00
45201cb284 combine build & test 2019-09-09 17:04:14 -04:00
d4240ffb4d Delete .dockerignore ⚠️
something weird about CircleCI build
it can't find target/release/nu
although it's whitelisted in the .dockerignore 🤔
2019-09-10 01:10:45 +07:00
7e2d701725 Merge pull request #631 from jonathandturner/light_tables
Add lighter-weight table output
2019-09-10 05:59:11 +12:00
4d3e7efe25 Close a bunch of holes in external command args
Previously, there was a single parsing rule for "bare words" that
applied to both internal and external commands.

This meant that, because `cargo +nightly` needed to work, we needed to
add `+` as a valid character in bare words.

The number of characters continued to grow, and the situation was
becoming untenable. The current strategy would eventually eat up all
syntax and make it impossible to add syntax like `@foo` to internal
commands.

This patch significantly restricts bare words and introduces a new token
type (`ExternalWord`). An `ExternalWord` expands to an error in the
internal syntax, but expands to a bare word in the external syntax.

`ExternalWords` are highlighted in grey in the shell.
2019-09-09 10:43:10 -07:00
35522ec6d8 Merge pull request #630 from vsoch/tweak/nightly-build
Tweaking nightly build - didnt seem to go off
2019-09-10 05:34:56 +12:00
aea11cf742 Merge branch 'master' into light_tables 2019-09-10 05:11:11 +12:00
d1167151fc Add support for light tables 2019-09-10 05:10:52 +12:00
6b2a7d6793 Fix .dockerignore compatibility with .circleci/
Signed-off-by: Fahmi Akbar Wildana <f.a.wildana@gmail.com>
2019-09-09 23:48:29 +07:00
4a2172a7f2 tweaking nightly build - didnt seem to go off
Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
2019-09-09 12:44:07 -04:00
8e3b7e2373 Merge pull request #629 from est31/fix_setting_config
Fix setting configuration params
2019-09-10 04:02:17 +12:00
1d3483b590 Add a test 2019-09-09 13:39:43 +02:00
1277bfe0fb Fix setting configuration params
Fixes #627

Fixes a regression caused by #579, specifically commit cc8872b4ee .

The code was intended to perform a comparison between the wanted
output type and "Tagged<Value>" in order to be able to provide a
special-cased path for Tagged<Value>. When I wrote the code, I
used "name" as a variable name and only later realized that it
shadowed the "name" param to the function, so I renamed it to
type_name, but forgot to change the comparison.
This broke the special-casing, as the name param only contains
the name of the struct without generics (like "Tagged"), while
`std::any::type_name` (in the current implementation) contains
the full paths of the struct including all generic params
(like "nu::object::meta::Tagged<nu::object::base::Value>").
2019-09-09 13:22:18 +02:00
cf2c19706e fix build warnings & add CI 2019-09-09 06:03:01 -04:00
0ca7aaa56f Add libz for glibc-{busybox,distroless}
Signed-off-by: Fahmi Akbar Wildana <f.a.wildana@gmail.com>
2019-09-09 16:45:55 +07:00
7c541000a1 Iterate over tag rather than base-image
Signed-off-by: Fahmi Akbar Wildana <f.a.wildana@gmail.com>
2019-09-09 07:15:51 +07:00
1878bb8a54 Merge pull request #624 from vsoch/test/nightly-builds
Adding nightly build to CircleCI
2019-09-09 11:29:31 +12:00
d900d8b4c7 Fix can't execute entrypoint
Signed-off-by: Fahmi Akbar Wildana <f.a.wildana@gmail.com>
2019-09-09 05:41:58 +07:00
da6d6467f3 adding to circle config to test nightly builds
Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
2019-09-08 18:36:06 -04:00
99d5dae83a Fix artifact is missing
Signed-off-by: Fahmi Akbar Wildana <f.a.wildana@gmail.com>
2019-09-09 04:20:08 +07:00
4ce6a9c9f7 Merge pull request #622 from vsoch/test/shorter-docker-builds
Building akin to azure-pipelines to shorten CircleCI builds
2019-09-09 08:58:43 +12:00
24ba0d93c7 test building akin to azure-pipelines (without release) to hopefully shorten circleci builds
Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
2019-09-08 15:44:52 -04:00
f6f9507141 Merge pull request #623 from lesichkovm/patch-1
Spell check fixed
2019-09-09 05:59:30 +12:00
160bd7c535 Spell check fixed 2019-09-08 18:57:28 +01:00
d992086192 Add distroless as base image 2019-09-08 23:42:03 +07:00
fa53d59aee Add scratch as base image 2019-09-08 22:59:35 +07:00
21896b200c Add busybox as base image 2019-09-08 22:31:10 +07:00
c9c9112155 Build and publish docker img along with nu plugins
* Add Package.Dockerfile as flexible build source

* Add docker-compose.package.yml as intermediary config

* CI will use new github action YAML format

it only publish the docker image on git tag

* Add debian:latest, debian:slim, and alpine as base image

* Add documentation
2019-09-08 21:38:25 +07:00
6f13bf8b51 Merge pull request #620 from androbtech/valueshell-cd
Valueshell cd and FileSystemShell cd refactoring.
2019-09-08 06:09:45 -05:00
f770409a60 cd '-' valueshell implementation and valueshell refactorings. 2019-09-08 05:40:47 -05:00
77c2e4200e Filesystem cd refactor/cleanup. 2019-09-08 04:55:49 -05:00
207f9ece5a Merge pull request #618 from androbtech/cd-coverage
Filesystem change directory coverage.
2019-09-08 03:32:00 -05:00
df9ff44956 Filesystem change directory coverage. 2019-09-08 03:09:05 -05:00
ffd92362b0 Merge pull request #617 from jonathandturner/more_optional
Make some plugins optional, move ps to plugin
2019-09-08 19:39:48 +12:00
448b1a4848 Make some plugins optional, move ps to plugin 2019-09-08 19:06:15 +12:00
eecda3ecba Merge pull request #363 from twe4ked/cd-back
Implement `cd -` to return to the previous directory
2019-09-08 01:00:32 -05:00
159cf27e39 Implement cd - to return to the last path for the FilesystemShell 2019-09-08 15:10:46 +10:00
07151b8360 Merge pull request #615 from jonathandturner/echo
Fix exec::shell and add echo command
2019-09-08 14:30:24 +12:00
9da896ad4e Attempt so simplify classified 2019-09-08 14:00:04 +12:00
84628f298d Finish fixing failing tests. 2019-09-08 13:35:02 +12:00
4cdaed1ad4 Add echo command 2019-09-08 11:43:53 +12:00
6c5da7d5a7 Merge pull request #614 from JonnyWalker81/expand-pwd-command
Expand pwd command
2019-09-07 18:11:41 -05:00
7427ea51df Removed commented out code. 2019-09-07 15:43:30 -07:00
7913ae76f8 Expand pwd command
Expand functionality of the pwd command to better handle the different
types of shells (e.g. FilesystemShell, ValueShell, etc.).
2019-09-07 15:31:16 -07:00
90b358d60b Merge pull request #612 from chhetripradeep/pchhetri/add-pwd-command
Adds pwd command
2019-09-08 06:02:38 +12:00
ee301f9f54 Adds pwd command 2019-09-07 23:53:56 +08:00
8be14a891d Merge pull request #611 from jonathandturner/autoview_plugin
Protect autoview against missing plugins
2019-09-07 20:09:58 +12:00
ffaf17945d Merge pull request #609 from nushell/jonathandturner-patch-2
Attempt to fix issue with ^C in Windows
2019-09-07 19:38:25 +12:00