Commit Graph
34 Commits
Author SHA1 Message Date
Andrew Schwartzmeyer af1343472d Fix up Get-OmiInstance build and tests
Deploying module is a bit funky until dotnet-cli gives us more control
over which libraries to build and where. Theoretically we'll be able to
package System.Management.Automation and depend on the package instead,
so Commands.Omi can be its own project entirely.

Cleaned up the Commands.Omi project.json as it had some unnecessary
cruft from where it was copied. Also removed the AssemblyInfo as it does
not matter for a new module.

Moved the Get-OmiInstance Pester test to the project's test folder so it
doesn't run with our suite of tests (as it takes a dependency on OMI).
2015-12-23 12:29:08 -08:00
George Fleming d0e2c22e54 Added Get-OmiInstance cmdlet
In a separate module importable into PowerShell.
2015-12-23 11:15:38 -08:00
Andrew Schwartzmeyer b3a92e0ed3 Fix types and format files
Link to them instead so they don't get out of date. Explicitly fix the
incorrectly named file with an explicit link name. Also deploy the types
files with fixes to monad to fix shell output for various cmdlets.

Bumps monad submodule.
2015-12-22 17:03:14 -08:00
Andrew Schwartzmeyer 489a951c5d Use System.Environment.NewLine in host 2015-12-22 12:18:51 -08:00
Andrew Schwartzmeyer 7cd8b1f3ee Use StringBuilder append instead of insert
For the special case of having a string to insert on the buffer, switch from calling this.Insert to appending the string directly (and incrementing the count appropriately).
2015-12-22 12:03:44 -08:00
Andrew Schwartzmeyer a2270ceb2d Change access-level of Run() from public to internal 2015-12-22 11:51:26 -08:00
v-alexjo e8dc4d1e78 Bug fix for up arrow with history not indexing correctly 2015-12-22 10:19:14 -08:00
v-alexjo 14ab620236 Improved tabcompletion logic for blank prompt and reset line after tab 2015-12-21 19:24:21 -08:00
Andrew Schwartzmeyer 837f40bbee Fix Newtonsoft.Json Pester tests
Look for library in new location.
2015-12-21 13:00:47 -08:00
Andrew Schwartzmeyer 7f4c755f5d Whitespace cleanup of readline
Sorry...
2015-12-18 16:30:24 -08:00
v-alexjo 785e63eb6f Up and down arrows now function similiarly to windows 2015-12-18 16:26:03 -08:00
v-alexjo b3d3245c99 Readline logic added to prevent out of index when history queue is null 2015-12-18 16:13:44 -08:00
v-alexjo 388022e02e Added downkey logic and improved up key logic for index errors 2015-12-18 16:13:44 -08:00
Andrew Schwartzmeyer 30a562123a Clean up Host's project.json 2015-12-18 16:11:36 -08:00
Andrew Schwartzmeyer db49516dec Fix compiler warning 2015-12-17 16:09:09 -08:00
Andrew Schwartzmeyer 548cbc91b1 Bring back InitialSessionState() 2015-12-17 16:08:24 -08:00
v-alexjo 65b2cb9831 Implemented readline, readkey, special keys 2015-12-16 22:34:32 -08:00
Andrew Schwartzmeyer 251a875935 Major refactor of .NET dependencies
Much simpler now, thanks to NETStandard.Library.
2015-12-16 15:08:31 -08:00
Andrew Schwartzmeyer ce8e9a475b Fix bug with System.Native.so
Need the up-to-date version so that exiting the console doesn't totally
mess up the hosting shell (Bash).

Should not depend on this package longterm, as it's
platform-specific. Tracking in https://github.com/dotnet/cli/issues/405
2015-12-16 13:47:04 -08:00
Andrew Schwartzmeyer 7d0b89733e Remove host's AssemblyInfo file
It doesn't need it for anything.
2015-12-16 12:58:45 -08:00
Andrew Schwartzmeyer e1a3ca005f Merge branch 'dev/writeprogresscmdlet' into dev/dotnet 2015-12-16 11:48:54 -08:00
Andrew Schwartzmeyer 7118fcfbc5 Remove deprecated host.mk 2015-12-14 10:31:18 -08:00
Andrew Schwartzmeyer 51561b4773 Start fix of ps1xml files 2015-12-10 12:35:06 -08:00
Andrew Schwartzmeyer 6fbb220df3 Brought back PowerShell's AssemblyLoadContext
Removes dependency on Microsoft.Extensions.Platform.Abstractions.

Makes use of native executable from `dotnet-cli` impossible; must use
`powershell` from monad-native.
2015-12-08 14:30:24 -08:00
Andrew Schwartzmeyer 13e60bdc22 Move ps1xml files to host so content works
https://github.com/dotnet/cli/pull/61
2015-12-08 12:04:55 -08:00
Andrew Schwartzmeyer 5ed21e794f Wild card and sort dependencies
These still need to be pruned.
2015-12-08 11:20:01 -08:00
Andrew Schwartzmeyer bcc844d678 Add dotnetcore NuGet repo back 2015-12-07 14:27:06 -08:00
Andrew Schwartzmeyer 0b6b1f116e Update for use with dotnet-cli
https://github.com/dotnet/cli
2015-12-07 14:27:06 -08:00
Andrew Schwartzmeyer 04cc9c99d7 Revert "Add runspace test without InitialSessionState"
This reverts commit cc2bdee9ec.

This is no longer neccesary as we're now able to unit test this.
2015-12-02 10:03:34 -08:00
Andrew Schwartzmeyer a574d0200b Temporarily remove InitialSessionState 2015-12-01 13:27:51 -08:00
Andrew Schwartzmeyer 5004839f63 Pin NuGet packages
Using new ASP.NET Release feed and pinned package versions.

Thanks Garret!
2015-12-01 10:56:56 -08:00
Andrew Schwartzmeyer bb4b388c89 Move TypeCatalog code to System.Management.Automation
We're keeping it in the superproject for now, as it's the only build
system with a dependency on the file. However, we have to move it out of
the host because the unit tests also need to initialize the type catalog.
2015-11-30 13:14:23 -08:00
Andrew Schwartzmeyer d058a217d0 Track long type in TypeCatalog 2015-11-24 15:06:56 -08:00
Andrew Schwartzmeyer d6416e64e2 Move DNX assemblies to src subtree 2015-11-23 17:54:30 -08:00