Rename profile to user, matches API /user/ path. · CaptnCodr/github-api-cli@4e56af7 · GitHub
Skip to content

Commit 4e56af7

Browse files
committed
Rename profile to user, matches API /user/ path.
1 parent f44aae6 commit 4e56af7

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

Arguments.fs

Lines changed: 2 additions & 2 deletions
File renamed without changes.

Program.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

Profile.fs renamed to Users.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ open FsHttp
44
open FSharp.Data
55
open 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 {

github-api-cli.fsproj

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)