File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ module Arguments =
66
77 [<DisableHelpFlags>]
88 type CliArguments =
9- | [<CliPrefix( CliPrefix.None); AltCommandLine( " -p " ) >] Profile of string
9+ | [<CliPrefix( CliPrefix.None); AltCommandLine( " -u " ) >] User of string
1010 | [<CliPrefix( CliPrefix.None); AltCommandLine( " -v" ); >] Version
1111 | [<CliPrefix( CliPrefix.None); AltCommandLine( " -h" ); >] Help
1212
1313 interface IArgParserTemplate with
1414 member this.Usage =
1515 match this with
16- | Profile _ -> " Profile of specific user."
16+ | User _ -> " User profile of specific user."
1717
1818 | Version -> " Shows actual application version."
1919 | Help -> " Displays this help"
File renamed without changes.
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ module Program =
99
1010 let runCommands ( parser : ArgumentParser < CliArguments >) ( args : string array ) =
1111 match ( parser.Parse args) .GetAllResults() with
12- | [ Profile p ] ->
13- p |> Profile .getUser
12+ | [ User p ] ->
13+ p |> Users .getUser
1414
1515 | [ Version ] ->
1616 Assembly.GetExecutingAssembly() .GetName() .Version |> string
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ open FsHttp
44open FSharp.Data
55open System
66
7- module Profile =
7+ module Users =
88
99 [<Literal>]
1010 let Url = " https://api.github.com/users"
1111
12- type ProfileResponse = JsonProvider< " ./Data/Profile .json" , ResolutionFolder=__ SOURCE_ DIRECTORY__>
12+ type ProfileResponse = JsonProvider< " ./Data/Users .json" , ResolutionFolder=__ SOURCE_ DIRECTORY__>
1313
1414 let getUser ( user : string ) : string =
1515 http {
Original file line number Diff line number Diff line change 1111 </PropertyGroup >
1212 <ItemGroup >
1313 <Content Include =" .config\dotnet-tools.json" />
14- <Content Include =" Data\Profile .json" />
14+ <Content Include =" Data\Users .json" />
1515 <None Include =" paket.dependencies" />
1616 <None Include =" paket.references" />
1717 <Compile Include =" Arguments.fs" />
18- <Compile Include =" Profile .fs" />
18+ <Compile Include =" Users .fs" />
1919 <Compile Include =" Program.fs" />
2020 </ItemGroup >
2121 <ItemGroup />
You can’t perform that action at this time.
0 commit comments