Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: joncloud/thor_net
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.0
Choose a base ref
...
head repository: joncloud/thor_net
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: publish
Choose a head ref

Commits on May 23, 2016

  1. Update README.md

    joncloud committed May 23, 2016
    Copy the full SHA
    679e531 View commit details
  2. Moved usage to wiki.

    joncloud committed May 23, 2016
    Copy the full SHA
    0d60ca6 View commit details
  3. Copy the full SHA
    ea3bc3f View commit details
  4. Copy the full SHA
    b997458 View commit details

Commits on Jun 5, 2016

  1. Copy the full SHA
    db02d6e View commit details
  2. Copy the full SHA
    7d24b38 View commit details
  3. Updated help to allow recursive subcommands.

    Moved help to be an internal method.
    Added help conditionally to commands.
    Added binding support for arrays if the array is the last parameter.
    joncloud committed Jun 5, 2016
    Copy the full SHA
    c503ac3 View commit details

Commits on Jun 6, 2016

  1. Copy the full SHA
    85b900f View commit details

Commits on May 11, 2017

  1. Rearranges code to more closely match recommended structure. (#21)

    * Rearranges code to more closely match recommended structure.
    
    * Fixes path for Dockerfile
    joncloud authored May 11, 2017
    Copy the full SHA
    2380c23 View commit details

Commits on Nov 19, 2017

  1. Csproj (#22)

    * Upgrades to csproj.
    
    * Updates for csproj.
    
    * Adds missing TheoryAttribute.
    joncloud authored Nov 19, 2017
    Copy the full SHA
    43a38be View commit details

Commits on Jun 12, 2020

  1. Changes to github actions

    * Adds github action yaml
    * Removes travis yaml
    * Upgrades sample projects to use .net core 3.1
    joncloud committed Jun 12, 2020
    Copy the full SHA
    aeec3ba View commit details
  2. Copy the full SHA
    7ad51b8 View commit details
  3. Fixes icon name

    joncloud committed Jun 12, 2020
    Copy the full SHA
    e3a98fd View commit details

Commits on Aug 9, 2020

  1. Ensures prefix is consistent for aliases

    * Adds alias checking for help and parsing
    * Adds tests for validate options help
    * Adds mock terminal for better testing
    joncloud committed Aug 9, 2020
    Copy the full SHA
    164b830 View commit details
  2. Merge pull request #24 from joncloud/fix-help-alias-prefix

    Ensures prefix is consistent for aliases
    joncloud authored Aug 9, 2020
    Copy the full SHA
    fe54b77 View commit details
  3. Adds TargetInvocationException handling

    * Introduces common exception handling
    * Adds tests for exception handling
    * Shares line parsing for tests
    joncloud committed Aug 9, 2020
    Copy the full SHA
    9ebc87c View commit details
  4. Merge pull request #25 from joncloud/fix-exception-error

    Adds TargetInvocationException handling
    joncloud authored Aug 9, 2020
    Copy the full SHA
    53b4500 View commit details
  5. Adds the ability to alias commands

    * Creates AliasAttribute for methods
    * Refactors help usage
    * Updates sample app and tests
    joncloud committed Aug 9, 2020
    Copy the full SHA
    09a9c5a View commit details
  6. Merge pull request #26 from joncloud/add-method-alias

    Adds the ability to alias commands
    joncloud authored Aug 9, 2020
    Copy the full SHA
    7ec3695 View commit details
  7. Copy the full SHA
    0a306c8 View commit details
  8. Merge pull request #27 from joncloud/async-over-async

    Replaces sync API with async API
    joncloud authored Aug 9, 2020
    Copy the full SHA
    f822349 View commit details
  9. Misc fixes to readme.

    * Fixes image link
    * Removes project.json notes
    joncloud committed Aug 9, 2020
    Copy the full SHA
    e95e462 View commit details
  10. Copy the full SHA
    41d5b36 View commit details
  11. Copy the full SHA
    8845921 View commit details
  12. Retargets to netstandard2.0

    joncloud committed Aug 9, 2020
    Copy the full SHA
    4e2987d View commit details

Commits on Aug 12, 2020

  1. Implements better support for enum options

    * Adds OptionAttribute.EnumType
    * Displays possible values for options that are enums
    * Enforces possible values when present
    joncloud committed Aug 12, 2020
    Copy the full SHA
    a15bc65 View commit details
  2. Merge pull request #28 from joncloud/enum-help

    Implements better support for enum options
    joncloud authored Aug 12, 2020
    Copy the full SHA
    bd09219 View commit details
Showing with 830 additions and 745 deletions.
  1. +41 −0 .github/workflows/dotnet-core.yml
  2. +0 −12 .travis.yml
  3. +0 −5 Dockerfile
  4. +6 −374 README.md
  5. +53 −0 ThorNet.sln
  6. +0 −3 global.json
  7. +31 −20 nuget.svg
  8. +6 −3 src/ThorNet.Sample/Messages.cs
  9. +14 −9 src/ThorNet.Sample/Program.cs
  10. +18 −0 src/ThorNet.Sample/ThorNet.Sample.csproj
  11. +0 −21 src/ThorNet.Sample/ThorNet.Sample.xproj
  12. +0 −19 src/ThorNet.Sample/project.json
  13. +0 −53 src/ThorNet.UnitTests/OptionTests.cs
  14. +0 −22 src/ThorNet.UnitTests/ThorNet.UnitTests.xproj
  15. +0 −28 src/ThorNet.UnitTests/project.json
  16. +0 −49 src/ThorNet.sln
  17. +24 −0 src/ThorNet/AliasAttribute.cs
  18. +2 −1 src/ThorNet/BindingResultType.cs
  19. +5 −0 src/ThorNet/ICommand.cs
  20. +26 −1 src/ThorNet/MethodInfoWrapper.cs
  21. +14 −2 src/ThorNet/Option.cs
  22. +27 −0 src/ThorNet/OptionAttribute.cs
  23. +6 −6 src/ThorNet/OptionSubstitutor.cs
  24. +40 −7 src/ThorNet/ParameterBinder.cs
  25. +113 −37 src/ThorNet/Thor.cs
  26. +35 −9 src/ThorNet/ThorCommand.cs
  27. +32 −0 src/ThorNet/ThorNet.csproj
  28. +0 −19 src/ThorNet/ThorNet.xproj
  29. +0 −37 src/ThorNet/project.json
  30. +95 −0 tests/ThorNet.UnitTests/AliasTests.cs
  31. +38 −0 tests/ThorNet.UnitTests/ExceptionHandlingTests.cs
  32. +2 −2 {src → tests}/ThorNet.UnitTests/ExitTests.cs
  33. +3 −0 {src → tests}/ThorNet.UnitTests/MethodInfoWrapperTests.cs
  34. +33 −0 tests/ThorNet.UnitTests/MockTerminal.cs
  35. 0 {src → tests}/ThorNet.UnitTests/NullTerminal.cs
  36. 0 {src → tests}/ThorNet.UnitTests/OptionSubstitutorTests.cs
  37. +131 −0 tests/ThorNet.UnitTests/OptionTests.cs
  38. 0 {src → tests}/ThorNet.UnitTests/ParameterBinderTests.cs
  39. 0 {src → tests}/ThorNet.UnitTests/ParameterInfoWrapperTests.cs
  40. +3 −2 {src → tests}/ThorNet.UnitTests/SubcommandTests.cs
  41. +4 −4 {src → tests}/ThorNet.UnitTests/ThorCommandTests.cs
  42. +28 −0 tests/ThorNet.UnitTests/ThorNet.UnitTests.csproj
  43. 0 {src → tests}/ThorNet.UnitTests/TypeHelperTests.cs
  44. 0 {src → tests}/ThorNet.UnitTests/Utility.cs
41 changes: 41 additions & 0 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: .NET Core

on:
push:
branches: [ publish ]

pull_request:
branches: [ publish ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test --configuration Release --no-build --no-restore --verbosity normal

- name: Pack
run: dotnet pack --configuration Release --no-restore --no-build ./src/ThorNet/ThorNet.csproj
if: ${{ contains(github.ref, 'refs/heads/publish') }}

- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
if: ${{ contains(github.ref, 'refs/heads/publish') }}
with:
name: ThorNet
path: src/ThorNet/bin/Release
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

5 changes: 0 additions & 5 deletions Dockerfile

This file was deleted.

Loading