Commit Graph
100 Commits
Author SHA1 Message Date
Andrew Schwartzmeyer 689ca6a02f Remove CaptureScreen binding
Does not exist for Open PowerShell
2016-04-28 11:00:40 -07:00
Andrew Schwartzmeyer 0239674ff1 Add project.json to build test/PSReadLine 2016-04-28 10:54:51 -07:00
Andrew Schwartzmeyer 9c15c6ccd0 Import TestPSReadLine app
This app is used for basic PSReadLine functionality testing.

Squashed commit of the following:

commit 3c1ac0aa87df663d0cfb1346352fd240a6ad1fa4
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Sun Dec 13 09:23:31 2015 -0800

    Use nuget packages for PowerShell SDK.

commit 0fe7731a68d62af9508200a067aa162cb5154f68
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Sat Nov 14 20:11:50 2015 -0800

    Merge branch 'master' of https://github.com/srdubya/PSReadLine into vimode

commit aa6510e19887dd2cb1ed7fa06b172dc456b0cede
Author: Jason Shirk (POWERSHELL) <jasonsh@microsoft.com>
Date:   Thu Jun 18 18:24:23 2015 -0700

    Fix/suppress various FxCop errors

commit d59a997c3a2b4d18b91e0f937fc4ff76e58929f1
Author: Jason Shirk (POWERSHELL) <jasonsh@microsoft.com>
Date:   Thu Jun 18 15:32:20 2015 -0700

    Rename namespace PSConsoleUtilities to Microsoft.PowerShell

commit 258a8f28db90d98b8785487516544836ce42bb4e
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Fri Sep 26 18:15:19 2014 -0700

    Fix exception after AcceptAndGetNext

    The "current" line cleared after accepting via AcceptAndGetNext
    and we would crash trying to recall this current line.

    I've changed how history search works after AcceptAndGetNext
    to work in a more natural way so that arrow keys can be used
    to recall commands near the accepted command instead of
    searching for other commands with the same prefix.

    Fixes #152.

commit e069ed088a9ea970d8b0e9cdb990da5ad4d20f01
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Tue Sep 9 17:36:59 2014 -0700

    Add ValidateAndAcceptLine function

    To avoid cluttering the screen and history with command lines
    that don't work because of stupid errors like "command not found",
    you can bind enter to ValidateAndAcceptLine.

commit cb81fa2cc4708ee54214320dc6ce8564e38a1642
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Fri Jun 27 20:58:57 2014 -0700

    Fix prompt error highlight characters

    When deciding what character to color red for errors, we were
    using IsSymbol - that was a bit too restrictive so it was changed
    to be any non-whitespace and non-alphanumeric characters.

    Fixes #127

commit 0ecd15d909ea31ccd9390c15d295af2f750d0d68
Author: Jason Shirk <jason@truewheels.net>
Date:   Thu Jun 12 14:09:17 2014 -0700

    Attempt better recovery from an exception

    If an exception occurs when editing the command line, display some
    diagnostic information so that I might get a bug report.  Also
    attempt to restore the command line so they can continue editing.

commit 079d18223c7e49638c96f4533d27198b47a5d2bb
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Thu Apr 17 09:28:04 2014 -0700

    Tweak for easier testing

commit d79bf5056bdef0a165ee453c5f7b45e528cc0681
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Sun Apr 13 11:21:30 2014 -0700

    Cleanup some Resharper issues

commit 1258dd12cab81d07aa52d388468ee9ef99063664
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Sun Jan 26 20:21:22 2014 -0800

    InvokePrompt tests

    Removed Console.WriteLine replacement as it didn't work for InvokePrompt.
    Changed test harness to override VS and actually write stdout to the screen.

commit 526b0b5123c88cd8f47a166f376f34356976edb5
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Fri Jan 24 23:00:48 2014 -0800

    Remove custom bindings

commit fd0679c0da99da5ae4e1d5a59842b1fb0a9af6c2
Author: jason@truewheels.net <jason@truewheels.net>
Date:   Fri Jan 3 00:09:49 2014 -0800

    Add CaptureScreen function

    CaputureScreen is used to copy lines from the screen to the clipboard.
    Text is copied in plain text as well as rtf with colors.
    Rtf looks best in Outlook - which is my primary reason for adding the feature.

commit e2a0b53f72a0e6a39a9736a3c1a3d2a6b1b81184
Author: Jason Shirk <jason@truewheels.net>
Date:   Fri Nov 15 07:29:12 2013 -0800

    Fix Undo after Paste

commit 8453eca0dd9ffe0cb160fefb12d0be935e64ec85
Author: Jason Shirk <jason@truewheels.net>
Date:   Fri Nov 15 00:30:50 2013 -0800

    Ctrl-R support

commit 0b058c2aaee18b33d97dd8d375fac7bbf4d07ce9
Author: Jason Shirk <jason@truewheels.net>
Date:   Sat Nov 2 08:49:48 2013 -0700

    Really exit from test program when typing exit

    Exit wasn't exiting anymore because the thread that reads keys was blocked.

commit e9d5203346f62dacc6315c8e8cb4dc227a6477df
Author: Jason Shirk <jason@truewheels.net>
Date:   Mon Sep 23 09:03:59 2013 -0700

    Comment out history search in test program

commit 674f90a64c5c627d50f6b018511eb9585640d65a
Author: Jason Shirk <jason@truewheels.net>
Date:   Thu Sep 19 09:18:19 2013 -0700

    Add demo mode and ETW trace

    Added ETW tracing for key presses (a key logger!) so it can be used
    in a variety of ways, e.g. when doing performance profiling, you can
    add a message of sorts via key presses if you turn on the provider.

    The ETW tracing code depends on CLR 4.5, this might force some folks
    to upgrade.

    Added PSReadline.EnableDemoMode which uses the ETW trace to display
    key presses while you type.  This is useful for talks and producing
    screen captures to show the editing experience.

commit 222a5efea732d6c34e5263b638d5d3fc04407355
Author: Jason Shirk <jason@truewheels.net>
Date:   Wed Sep 11 17:55:30 2013 -0700

    Support 2 key chords

    Support for 2 key chords has been added.

    There is a small breaking change in Set-PSReadlineKeyHandler
    because the -CtrlX switch is no longer needed.  It could have
    been left in, but it's better to just remove it - not very
    many people use this module yet.

    The signature of key handlers was also changed to better support
    features that have not yet been implemented.  The signature change
    shouldn't affect any existing key handlers because default arguments
    should cover those cases.

commit 3121bcbf6c57b98ead2cc525f8d3d40cbc54c49e
Author: Jason Shirk <jason@truewheels.net>
Date:   Fri May 24 19:56:34 2013 -0700

    Add Get-PSReadlineKeyHandler

    To make it easier to see what keys are bound, you can use the command Get-PSReadlineKeyHandler.

    The command Set-PSReadlineKeyHandler also adds support for binding Ctrl-X prefixed commands in Emacs mode.

commit ed78159f1a27f7a78a26fbad555203dcee94a05c
Author: Jason Shirk <jason@truewheels.net>
Date:   Sun May 12 23:52:15 2013 -0700

    Initial checkin.
2016-04-28 10:49:41 -07:00
Andrew Schwartzmeyer 04c49c376b Fix resource manager
Since the project is `Microsoft.PowerShell.PSReadLine`, the embedded
resource name had to be fixed.
2016-04-27 13:40:29 -07:00
Andrew Schwartzmeyer a4ef2b7e8b Add PSReadLine as base module
Note that, because Linux file systems are case-sensitive, we have to
use the correct capitalization that matches the actual module files.
2016-04-27 13:40:27 -07:00
Andrew Schwartzmeyer ef2092774c Add PSReadLine module files
These are copied from `src/Microsoft.PowerShell.PSReadLine`, which is
necessary until .NET CLI has better support for specifying
source/destination content information (which is coming soon).
2016-04-27 12:04:43 -07:00
Andrew Schwartzmeyer 1f56fd6692 Make CoreConsoleHost depend on PSReadLine 2016-04-27 11:01:55 -07:00
Andrew Schwartzmeyer d209febcae Add PSReadLine project.json 2016-04-27 11:00:45 -07:00
Andrew Schwartzmeyer 98303ea6e7 Avoid trying to load DLLs as Snap-Ins with Import-Module
Thanks @lzybkr.
2016-04-27 10:38:16 -07:00
Andrew Schwartzmeyer 53bfc80b56 Fix Pester tests
The `Get-Process` cmdlet cannot be used for these types of tests due to
security constraints on OS X.

These tests are about to be re-written soon anyway, so the simple fix
was to use another cmdlet.
2016-04-25 15:27:24 -07:00
Andrew Schwartzmeyer 86d7d749bb Update type catalog 2016-04-25 14:21:39 -07:00
Andrew Schwartzmeyer a48abd0b6c Fix xUnit tests for new framework
This also enables us to run them on OS X (though they will fail).
2016-04-25 14:11:13 -07:00
Andrew Schwartzmeyer ea5d5c3d05 Switch to netcoreapp1.0
Instead of using `dotnet publish`, we can use `dotnet build` and the new
`netcoreapp1.0` framework with a new dependency on
`Microsoft.NETCore.App` to generate output that does not include the
runtime, but can be run anywhere (given the installation of the
runtime).

While we cannot yet adopt a dependency on the shared host until .NET
Core RTM, we are forced to switch to this system anyway because the
latest RC3 packages and CLI do not support `netstandardapp1.5`. See
dotnet/cli#2482.

Thus we're in an in-between state where we have to use `netcoreapp1.0`,
but cannot use `"Microsoft.NETCore.App": { "type": "platform" }` to
utilize the shared host, as we need to continue to ship our host.
Without specifying "platform", we retain the status quo with respect to
build steps and outputs.

Additionally, there is no longer a good reason to use the RC3 packages,
and it has been advised we switch to RC2 since the
`Microsoft.NETCore.App` is only available for RC2. We must update
packages because our current version can no longer be debugged.
2016-04-25 14:01:44 -07:00
Andrew Schwartzmeyer 2f23390f87 Add releasing documentation
Resolves #665.
2016-04-22 16:27:25 -07:00
Andrew Schwartzmeyer 0130c9bfa7 Add GitHub pull request template 2016-04-22 15:28:23 -07:00
Andrew Schwartzmeyer e111f0301b Add GitHub issue template 2016-04-22 15:12:03 -07:00
Andrew Schwartzmeyer b8699a046d Fix up contributing guidelines
- Remove CI skip section because we always want CI
- Fix links due to file move
- Add note that CI will fail for PRs from forks
2016-04-22 15:12:02 -07:00
Andrew Schwartzmeyer b4faf6463c Move CONTRIBUTING.md into .github folder 2016-04-22 15:12:02 -07:00
Andrew Schwartzmeyer 5ab6f278f3 Fix bug when loading bad profiles
This resolves #817.

A PowerShell instance is created to load and execute profile code.
However, if the profile has a parse error, the instance never gets
created, thus we have to check that it's not null before disposing it.
2016-04-22 14:24:21 -07:00
Andrew Schwartzmeyer 234752cd90 Remove aspnetvnext and dotnet-cli feeds
The dotnet-core and aspnetcidev feeds provide all our required packages.
The aspnetvnext causes `dotnet restore` to take an inordinate amount of
time, which terminates our CI builds.

Reducing the number of feeds brings restore time from scratch down to 3
seconds on my machine.

The aspnetvnext feed was originally added for the CoreCLR xUnit runner
packages; but is no longer necessary.

Resolves #896.
2016-04-22 13:50:17 -07:00
Andrew Schwartzmeyer 5fee08a097 Fix -EncodedCommand implementation
PowerShell uses Encoding.Unicode, which is different from Encoding.UTF8.
2016-04-21 16:05:53 -07:00
Andrew Schwartzmeyer 019b44b1ca Add test for -EncodedCommand 2016-04-21 16:05:07 -07:00
Andrew Schwartzmeyer a529bff212 Add tests for powershell -? parsing
And all other accepted forms.
2016-04-21 15:59:40 -07:00
Andrew Schwartzmeyer afb499d85e Update Pester tests readme 2016-04-21 15:50:30 -07:00
Andrew Schwartzmeyer 33aaa8c6f9 Use -noprofile for powershell.exe tests 2016-04-21 15:41:52 -07:00
Andrew Schwartzmeyer b8ffd42051 Make TypeCatalogGen build script quieter 2016-04-21 11:17:59 -07:00
Andrew Schwartzmeyer 51cc45821f Use wild-card version of ProjectModel 2016-04-21 11:09:41 -07:00
Andrew Schwartzmeyer ca1055c83c Add Frequently Asked Questions to documentation
Addresses some PowerShell, build, and Git questions.
2016-04-20 16:25:58 -07:00
Andrew Schwartzmeyer ea73db0d68 Make Start-PSBootstrap re-install dotnet on Windows
It now helpfully deletes the previous `dotnet` directory so that older
versions of the CLI don't muck things up.
2016-04-20 15:21:55 -07:00
Andrew Schwartzmeyer fa0d7a34e4 Move known issues to docs folder
So only readme and contributing are top level.
2016-04-20 14:30:54 -07:00
Andrew Schwartzmeyer 957966508f Whitespace cleanup 2016-04-20 14:09:16 -07:00
Andrew Schwartzmeyer b2ae01fc3e Fix cryptic Pester failure
When the Pester tests were invoked over PSRP and the environment was
more pristine than a local client, the lack of a "foo" variable in some
scope caused the Pester test suite to emit an error at the end, failing
the PSRP build.

Removing the Clear-Variable directive eliminates this error, and is not
necessary for the Pester test itself.
2016-04-20 14:07:40 -07:00
Andrew Schwartzmeyer 0b91bf718f Whitespace clean up and re-indent 2016-04-20 10:48:08 -07:00
Andrew Schwartzmeyer 5c7fcbb462 Enable xUnit tests on Linux
We have to pretend they pass on OS X for now.
2016-04-14 18:07:33 -07:00
Andrew Schwartzmeyer 3b24ba5dd3 Allow default ALC to not be PowerShell's. 2016-04-14 18:07:33 -07:00
Andrew Schwartzmeyer dc9b4c595d Fix xUnit tests for Linux
The latest xUnit packages fix the "could not resolve coreclr path"
problem we were having. To resolve all dependencies, the cli-deps feed
was replaced with the aspnet feeds.

However, the latest xUnit packages do not allow us to set the default
AssemblyLoadContext.
2016-04-14 18:06:57 -07:00
Andrew Schwartzmeyer 94e5469458 Refactor options into New-PSOptions
Deduction of PowerShell output path is now done in `New-PSOptions`,
which returns a hash table representing the build options, so that it
can be done outside of `Start-PSBuild`.

`Start-PSBuild` saves the options it creates as a script-local variable,
`$script:Options`.

`Get-PSOutput` will either unwrap the an options hash table parameter,
the script local options hash table, or use the default options.

Thus, if `Start-PSBuild` hasn't been run, it can be used to get the
output path given non-default options like this:

```powershell
Get-PSOutput -Options (New-PSOptions -Publish)
```

Or simply call `Get-PSOutput` to get the best-guess default path.

Note that because ValidateSet does not support the use of constant
variables, the set of runtimes has to be duplicated, and an empty
runtime is supported.
2016-04-14 18:06:04 -07:00
Andrew Schwartzmeyer e8ed0b45d7 Clean up whitespace in build module 2016-04-14 18:06:04 -07:00
Andrew Schwartzmeyer 40b3888dcb Revert use of foreach in ALC
I forgot to revert this in #814, thanks @daxian-dbw for the pointer.
2016-04-14 17:34:00 -07:00
Andrew Schwartzmeyer 50093b202a Update documentation for OS X testing
Copy the Travis CI badge for 10.11. It is the same badge, but it will
fail if the build fails. I don't see a way to have separate badges, but
this highlights that the platform is being tested.
2016-04-14 11:26:34 -07:00
Andrew Schwartzmeyer b930eeef9f Disable broken OS X Pester tests
- The Get-Process cmdlet on OS X has issues due to permissions
- The Get-Process test in NativeLinuxCommands should have been removed
- The ProcessName property has the same bug that has been fixed on Linux
2016-04-14 10:05:51 -07:00
Andrew Schwartzmeyer 745fd43ede Increase ulimit on OS X 2016-04-14 09:45:18 -07:00
Andrew Schwartzmeyer 6851fe374c Enable OS X on Travis
Remove unsupported osx.10.10-x64 moniker. Use `osx_image: xcode7.3` to
get an OS X 10.11 image on Travis.
2016-04-14 09:45:18 -07:00
Andrew Schwartzmeyer b2bc4183fe Disable Travis CI OS X support
Unfortunately, Travis CI's OS X machines are 10.9.5, per
https://docs.travis-ci.com/user/osx-ci-environment/#CI-environment-OS.
While NuGet supports the RID, .NET Core does not yet publish 10.9
packages, resulting in a build failure we can't do anything about.

I've asked for best-effort support by providing runtime packages for
10.9 in dotnet/corefx#7731.

Revert "Add OS X 10.9 runtime"

This reverts commit 19ab0de84cec37bb90443df14d4e69f10c41e1b1.
2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer ed62e5c6e6 Add OS X 10.9 runtime 2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer 3d21d5da93 Deal with paths magically in Start-PSBuild 2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer beccce54a8 Use matrix.include and fix OS X PATH 2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer 14837da664 Update documentation for Start-PSBootstrap
Also moved Git setup section first.
2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer 38041211b5 Remove deprecated omibuild and psrp scripts 2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer aa1af214bc Add OS X to Travis CI matrix 2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer 7538951dfa Install package dependencies in download.sh 2016-04-13 19:24:12 -07:00
Andrew Schwartzmeyer 70f921e824 Update AppVeyor to use Start-PSBootstrap 2016-04-13 19:24:11 -07:00
Andrew Schwartzmeyer 995eaf4c0f Update Travis to use Start-PSBootstrap 2016-04-13 19:24:11 -07:00
Andrew Schwartzmeyer a031dd9095 Remove deprecated bootstrap.sh 2016-04-13 19:24:11 -07:00
Andrew Schwartzmeyer d94a040229 Add Start-PSBootstrap function
Installs Open PowerShell build dependenices on all platform; deprecates
`bootstrap.sh`.
2016-04-13 19:24:04 -07:00
Andrew Schwartzmeyer a5dfe80d9a Download and install packages for Ubuntu and OS X
This both downloads the v0.3.0 release for the current platform and now
also installs it (requiring `sudo`). Should probably rename.
2016-04-13 18:58:23 -07:00
Andrew Schwartzmeyer 9fc0dd451b Import-Module PowerShellGitHubDev in build.sh
Make it Do What I Mean.
2016-04-13 18:56:23 -07:00
Andrew Schwartzmeyer e210cf14c0 Bump Pester with fixes 2016-04-13 14:57:20 -07:00
Andrew Schwartzmeyer 1bc2a9e576 Fix stack overflow exception when loading assemblies
When an assembly that exists outside of the trusted platform assembly
list but in the GAC on Windows was loaded, the use of `Assembly.Load`
before the `LoadFromAssemblyPath` caused a recursive loop to occur.

This happens because an `Assembly.Load` on a not-yet-loaded
assembly is overridden, thus calling back into the
`AssemblyLoadContext.Load` override.

By attempting to load from the file path first, we avoid this loop.
However, loading TPA assemblies by their path throws an exception, so
now we catch this particular exception and attempt the load through
`Assembly.Load`.

This is safe for TPA assemblies since they're already loaded, thus the
`Assembly.Load` does not re-load the assembly, but simply returns it.
2016-04-13 09:40:16 -07:00
Andrew Schwartzmeyer 841f76ec37 Update Git setup documentation
Now that everyone needs all the submodules. Much simpler.
2016-04-12 16:16:17 -07:00
Andrew Schwartzmeyer 285253da02 Disable xUnit tests on Travis temporarily
Until #806 is resolved.
2016-04-12 16:00:05 -07:00
Andrew Schwartzmeyer b8f326adf5 Redirect PSRP documentation to other repo 2016-04-12 15:59:38 -07:00
Andrew Schwartzmeyer a2fc6c330a Remove PSRP building documentation
Migrated to PSRP repository
2016-04-12 15:18:27 -07:00
Andrew Schwartzmeyer 1f19758614 Remove OMI and provider submodules 2016-04-12 12:10:54 -07:00
Andrew Schwartzmeyer ea53a15642 Update download.sh to get v0.3.0 deb asset 2016-04-11 12:41:58 -07:00
Andrew Schwartzmeyer 735a702f1c Remove alias tests for Write-Output
The `echo` and `write` aliases were removed, which make these tests
inaccurate (but did not fail them).
2016-04-11 10:46:39 -07:00
Andrew Schwartzmeyer 71b55abf66 Bump .NET Core packages to build 24011
And update the CorePsTypeCatalog.
2016-04-11 10:37:15 -07:00
Andrew Schwartzmeyer e0547c81ff Update Linux installation documentation for v0.3.0 2016-04-11 09:50:58 -07:00
Andrew Schwartzmeyer 0afd4c2f98 Improve Start-PSPackage
- Now checks that previous Start-PSBuild was with -Publish
- Uses $script:Output automatically
- Uses /opt/microsoft/powershell on Linux per FHS
- Uses /usr/local/microsoft/powershell on OS X per FHS
- Specifies "--rpm-os linux" for RPM packages built elsewhere
- Creates symlink on demand for packaging
- Puts symlink in /usr/(local)/bin as it is expected to be in PATH
- Uses $Arguments array for better syntax
- Resolves #800

Note that if the target of the powershell symlink exists, `fpm` aborts
with a `utime` error on OS X.
2016-04-09 19:44:55 -07:00
Andrew Schwartzmeyer 865f174e22 Clean up comparison operators in build module 2016-04-09 18:56:14 -07:00
Andrew Schwartzmeyer 3a43126a2e Allow creation of symlink to non-existent target
This action is completely valid on both Windows and Linux (and OS X)
operating systems; tested with `mklink` and `ln -s` respectively.

Note that targets for hard links must exist, thus we check specifically
for symbolic links.

Both the path globber in session state and the `New-Item` implementation
needed to be fixed to allow the target not to exist.

Resolves #801.

Also enable symbolic link tests on Windows.
2016-04-09 18:45:23 -07:00
Andrew Schwartzmeyer 70c23dacd7 Fix Get-Help -Online
While Windows will automatically open a URL used as a process by
launching a browser, OS X needs to use `open <URL>`, and Linux needs to
use `xdg-open <URL>` (the most distribution-independent way).

Resolves #802.
2016-04-09 18:05:49 -07:00
Andrew Schwartzmeyer 022a63c6d2 Fix whitespace in csharp/project.json 2016-04-08 21:58:05 -07:00
Andrew Schwartzmeyer bd03b51c32 Respect PAGER variable and default to less on Linux 2016-04-08 21:52:14 -07:00
Andrew Schwartzmeyer 7ace2b6b64 Fix NuGet warnings by depending on NuGet.Packaging.Core
And upgrade dotnet-test-xunit
2016-04-08 21:50:24 -07:00
Andrew Schwartzmeyer feef62c5ea Bump .NET Core packages to 24004 2016-04-08 21:50:24 -07:00
Andrew Schwartzmeyer 6f45601a27 Rename profile from PSL to Microsoft.PowerShellCore
Final fix for #713.
2016-04-08 21:41:29 -07:00
Andrew Schwartzmeyer 839014b599 Try Assembly.Load correctly
This should resolve #791.

Instead of checking if `Assembly.Load` returned null (it doesn't), check
if it threw `FileNotFoundException`, which it will if it doesn't find
the assembly.
2016-04-08 19:09:38 -07:00
Andrew Schwartzmeyer 733cda385d Fix accidental mapping change
Happened in programmatic update commit bfaad3f05.
2016-04-08 18:09:09 -07:00
Andrew Schwartzmeyer ac157568d6 Publish on AppVeyor
So that the artifacts for Core PowerShell have the .NET Core
dependencies.
2016-04-08 16:25:53 -07:00
Andrew Schwartzmeyer d7233fc4d0 Remove import of Platform module from AppVeyor 2016-04-08 16:25:53 -07:00
Andrew Schwartzmeyer 92a34cba5f Add Publish switch to Start-PSBuild
Note that it is mutually exclusive with `FullCLR` as libraries are not
publishable; only applications can be published.
2016-04-08 16:25:53 -07:00
Andrew Schwartzmeyer f5a95a6ef5 Remove unsupported -Clean switch
Will put back when it is functional.
2016-04-08 16:25:53 -07:00
Andrew Schwartzmeyer 73fe95feb8 Add tests for removal of aliases 2016-04-08 15:52:37 -07:00
Andrew Schwartzmeyer b3521944ec Fix Pester test 2016-04-08 15:23:38 -07:00
Andrew Schwartzmeyer 8c7174de10 Fix xUnit tests 2016-04-08 15:22:37 -07:00
Andrew Schwartzmeyer 13e0760e16 Fix build module for removal of Platform module 2016-04-08 15:13:50 -07:00
Andrew Schwartzmeyer bcdad12c04 Fix tests for removal of Platform module 2016-04-08 15:13:01 -07:00
Andrew Schwartzmeyer fffaf4cfe2 Remove Platform module 2016-04-08 15:11:33 -07:00
Andrew Schwartzmeyer 822244d261 Fix properties
Static but not const, go figure.
2016-04-08 15:08:16 -07:00
Andrew Schwartzmeyer a082a02e6c Add PowerShell variables corresponding to platform
This deprecates the Microsoft.PowerShell.Platform module and ensure that
IsLinux/OSX/Windows/Core variables are defined all throughout PowerShell.
2016-04-08 15:04:27 -07:00
Andrew Schwartzmeyer 49066d212a Replace IsX method with IsCore property 2016-04-08 15:04:16 -07:00
Andrew Schwartzmeyer f5410a18ce Replace IsWindows method with property
And add *correct* IsLinux and IsOSX properties.
2016-04-08 14:54:41 -07:00
Andrew Schwartzmeyer 6f2110f38a Replace use of IsLinux with IsWindows
So that IsLinux can stop being overloading for OS X.
2016-04-08 14:50:37 -07:00
Andrew Schwartzmeyer 5b3840f753 Deploy Platform module on all flavors 2016-04-08 13:38:08 -07:00
Andrew Schwartzmeyer 2bd274f5d7 Fix tests broken by removal of aliases 2016-04-08 13:36:54 -07:00
Andrew Schwartzmeyer 47a8ee5bcf Remove A:...Z: drive functions on Linux / OS X
Resolves #612.
2016-04-08 12:50:53 -07:00
Andrew Schwartzmeyer 7d9f439666 Remove conflicting aliases for Linux and OS X
The aliases which conflict with Linux native commands were consolidated
and removed with the pre-processor definition `LINUX`. Additionally,
several "conflicts" are purposefully kept and likewise consolidated.
They are kept because Bash itself stomps on the native commands with its
own built-ins, and so we're adopting the same behavior.

The `clear` and `more` aliases are edge cases where the functions they
call are already fixed for Linux, and so we keep these too.

Resolves #567.
2016-04-08 12:50:47 -07:00
Andrew Schwartzmeyer 9288df09a1 Rename CoreConsoleHost host.cs Name
Fully resolve #713.
2016-04-08 11:00:52 -07:00
Andrew Schwartzmeyer bfaad3f057 Programmatic update of core console host rename 2016-04-08 10:59:41 -07:00