Commit graph

1181 commits

Author SHA1 Message Date
George Fleming 4bcc0f781f Fix crash when cursor goes 'off screen' 2016-02-22 17:02:37 -08:00
Andy Schwartzmeyer 2b6dadcb12 Merge pull request #578 from PowerShell/remove-dsc
Remove DSC submodule
2016-02-22 16:29:04 -08:00
Andrew Schwartzmeyer a18c2c43a3 Remove DSC submodule
Resolves #573.
2016-02-22 16:09:33 -08:00
Andy Schwartzmeyer f67c395c1c Merge pull request #572 from PowerShell/self-host
Enable self-hosting
2016-02-22 15:12:04 -08:00
Andrew Schwartzmeyer 31624ebd89 Use Start-PSBuild on AppVeyor 2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer a7177c24e2 Catch exception when used on FullCLR
This is the case when the module is used on FullCLR versions of
PowerShell (necessarily on Windows).
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer 472b17d547 Add Start-PSPackage command to build deb/pkg packages
Deprecates `package.sh`. Committed necessary package symlink because
creating one with PowerShell is not yet implemented.
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer 1453048674 Add cross-platform Start-PSBuild function
This can replace `build.ps1` and `build.sh`. However, we need to upload
packages so Travis can use PowerShell.
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer 839ae08df1 Change package script to generate .deb 2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer 694ba284c8 Add basic package creation script
Creates a .pkg for OS X using Effing Package Management.

Can be easily modified to create a .deb or .rpm etc.
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer de7b0eac08 Use deployed Pester module path instead of src 2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer d3c6d274ed Fix capitalization of GitHub in dev module's name 2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer c8891bb5a0 Copy user permissions to group and other in bin/*
Necessary for packages so that the libraries/deps files are readable,
even when owned by root (because it was installed from a package).
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer 56ed87c108 Respect Console.BackGround color
This was bugging me. Instead of using the existing console's background
color, we were hard-coding "Black." Now we just leave it alone.
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer b143465401 Remove banner from profile
When trying to use PowerShell a lot, this default banner gets annoying.
I don't think we need it any more. Also change the prompt to just "PS".
2016-02-22 11:29:03 -08:00
Andrew Schwartzmeyer 91765b3db3 Add Emacs-style readline bindings
Very simple implementation of C-(A,E,K,D,B,F,P,R,N,S,J,L) and Alt-(B,F).
2016-02-22 11:29:03 -08:00
Andy Schwartzmeyer 666e924aad Merge pull request #569 from PowerShell/tab4
Fix case where tab completion is not at end of command
2016-02-21 16:50:13 -08:00
George Fleming 567bc785ef Reposition cursor after tab 2016-02-21 13:09:45 -08:00
George Fleming 3a0eee9894 Fix case where tab completion is not at end of command 2016-02-20 17:58:03 -08:00
Andy Schwartzmeyer 5d20ec8e37 Merge pull request #564 from PowerShell/rawui
Reconcile rawui.cs with System.Console
2016-02-19 16:14:12 -08:00
Andy Schwartzmeyer c0e94d8941 Merge pull request #566 from PowerShell/fix-xunit
Fix xUnit tests for `netstandardapp1.5`
2016-02-19 15:27:29 -08:00
Andy Schwartzmeyer 7cc95decc6 Merge pull request #565 from PowerShell/scripts
Improve debug.sh and build.sh scripts
2016-02-19 15:27:05 -08:00
Andrew Schwartzmeyer 41a236dc5b Improve pester.sh script
- Check if PowerShell has been built before trying to use it.
2016-02-19 14:59:01 -08:00
Andrew Schwartzmeyer 3f37dfa438 Improve build.sh script
- Check for cmake, g++, and dotnet programs.
- Check for project.lock.json.
- Check that libpsl-native was compiled.
2016-02-19 14:58:48 -08:00
Andrew Schwartzmeyer 15e01bd553 Improve debug.sh script
- Move to the `bin` directly so that SOS works properly.
- Check for LLDB and PowerShell programs.
- Display help text.
2016-02-19 14:58:42 -08:00
Andrew Schwartzmeyer 9f2ce63267 Fix xUnit tests for netstandardapp1.5
With the switch to `netstandardapp1.5` framework for the host, the xUnit
test runner broke. For `dotnet test` to work with the .NET Core xUnit
runner, it must continue to target `dnxcore50`. Fortunately, we can
import our project's framework, and make everything work again.

Also improved the `xunit.sh` script to check for dependencies.
2016-02-19 14:40:17 -08:00
Andy Schwartzmeyer 0677ed522c Merge pull request #557 from PowerShell/readline
Improve tab-completion and up/down arrows
2016-02-19 13:22:16 -08:00
Andrew Schwartzmeyer b257a2d2fc Reconcile rawui.cs with System.Console
With the latest packages, a lot more System.Console API is available.
This commit implements what is now available through the API.

Where an API functions correctly on Linux, the result of a call through
PowerShell works as expected. Where it is not, a nice
`PlatformNotSupported` exception is thrown (and displayed by
PowerShell).

On Linux:

- `$host.ui.RawUI.WindowTitle` can be set but cannot be get
- `$host.ui.RawUI.CusorPosition` can be set and get
- `$host.ui.RawUI.CursorSize` can be get but cannot be set
- `$host.ui.RawUI.MaxPhysicalWindowSize` can be get
- `$host.ui.RawUI.MaxWindowSize` can be get
- `$host.ui.RawUI.WindowPosition` can be get but cannot be set
- `$host.ui.RawUI.WindowSize` can be get but cannot be set
- `$host.ui.RawUI.ReadKey` can be be used, but is only approximate
2016-02-19 11:20:53 -08:00
Andrew Schwartzmeyer 2e90b29cc8 Bump .NET Core packages to rc3-23819
Brings in fix for #546 and so enables the use of the PowerShell in non
xterm terminal emulators (like Tmux and screen).
2016-02-19 09:57:21 -08:00
George Fleming 8cbb08964c Fix a special down arrow scenario 2016-02-19 09:10:40 -08:00
George Fleming 23bdcdd330 Adding monad branch 2016-02-18 15:32:46 -08:00
George Fleming 3c2ec835c0 New changes to readline.cs to improve tab-completion and up/down arrow 2016-02-18 15:32:31 -08:00
Sergei Vorobev 16447a8326 Update README.md [skip ci]
Add info about msbuild alias
2016-02-18 13:29:10 -08:00
Andy Schwartzmeyer ce05a3e0b0 Update README.md 2016-02-18 12:45:53 -08:00
Andy Schwartzmeyer 198e667b4e Merge pull request #555 from PowerShell/cli-release
Refactor projects for use with .NET CLI 1.0.0
2016-02-18 12:24:47 -08:00
Andrew Schwartzmeyer 5c0abec45b Pin CLI to 1.0.0.001425 and update readme 2016-02-18 10:06:56 -08:00
Andrew Schwartzmeyer e6e4dcafbe Build with new framework and new CLI
All libraries now use the framework `netstandard1.5`, and import the
`dnxcore50` and `portable` frameworks. The app that is published,
Microsoft.PowerShell.Linux.Host, that is, the top-level dependency that
emits an executable, instead targets `netstandardapp1.5` and has a new
`runtimes` key so that .NET CLI's `restore` and `publish` commands know
which runtime implementations to resolve.

When switching to the new CLI, we needed to fix how we specified our
dependencies. In particular, the .NET CLI team helped me figure out how
to download packages that are reference assembly only on Linux, with
implementations on Windows. The result of this is the new `frameworks`
setup.

Additionally, we were incorrectly specifying our build dependencies;
that is, projects we also build (not packages). The solution was much
cleaner. We removed the `type: build` section and replaced it with the
version `1.0.0-*` that all our projects currently use.

The `project.json` files also had their names, descriptions,
indentation, and versions fixed.

The build scripts were simplified.
2016-02-18 10:06:56 -08:00
Sergei Vorobev 8dab22a545 Merge pull request #554 from PowerShell/vors/security
Vors/security
2016-02-17 19:55:53 -08:00
Sergei Vorobev 6982fee02d Update pointer to src/monad submodule 2016-02-17 18:04:56 -08:00
Sergei Vorobev 54c11c1e2c Add missed files to Microsoft.PowerShell.Security
This files are needed for FullCLR build.
They are responsible for some errors reported in BVT/DRT regression.
2016-02-17 17:43:56 -08:00
Sergei Vorobev 9be4ba7364 Fix issue with missed ImplicitRemotingCommands.cs 2016-02-17 17:43:11 -08:00
Andy Schwartzmeyer 3453645cd7 Merge pull request #545 from PowerShell/cli-xunit
xUnit test runner integration
2016-02-17 17:34:10 -08:00
Andrew Schwartzmeyer 58ad5b66d9 Bump monad submodule with fix for Append<T>
Newest .NET Core implements this, so the reimplementation in PowerShell
was a conflicting type. It was removed.
2016-02-17 17:18:07 -08:00
Andrew Schwartzmeyer ae64f99c25 Bump .NET packages to 23817 2016-02-17 17:17:55 -08:00
Andrew Schwartzmeyer dae6e0ebd5 Use Linux.Host in xUnit tests
Make its internals visible to the `powershell-tests` assembly, and use its
`MyHost` and `Listener` classes instead of facades.
2016-02-17 17:03:59 -08:00
Andrew Schwartzmeyer 473ac41630 Initialize the ALC for the runspace tests
This initialization was moved out of the native host and into the
managed host, so the same setup must now be done before tests.
2016-02-17 17:03:59 -08:00
Andrew Schwartzmeyer 2ce694ebdd Add xUnit test runner script
Unfortunately a wrapper is needed because `LD_LIBRARY_PATH` must be set
to avoid having to place build artifacts (specifically
`libpsl-native.so`) out-of-tree to run tests.
2016-02-17 17:03:59 -08:00
Andrew Schwartzmeyer c68164f280 Remove Commands.Omi module
This was a temporary work-around that now needs to be removed (mostly
because the xUnit tests are out-of-date because we didn't have a runner,
and it's not worth it to fix them). Rather than let more cruft
accumulate, we need to remove it.

Resolves #551
2016-02-17 17:03:59 -08:00
Andrew Schwartzmeyer eb43300842 Update CorePsTypeCatalog 2016-02-17 17:03:59 -08:00
Andrew Schwartzmeyer 4d13ef1a29 Expose SMA internals to powershell-tests 2016-02-17 17:03:53 -08:00