forked from talex5/get-activity
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request talex5#10 from samoht/range
Display activity range
- Loading branch information
Showing
6 changed files
with
82 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
type t | ||
|
||
val fetch : from:float -> token:Token.t -> Yojson.Safe.t | ||
val fetch : period:(string * string) -> token:Token.t -> Yojson.Safe.t | ||
|
||
val of_json : from:float -> Yojson.Safe.t -> t | ||
val of_json : from:string -> Yojson.Safe.t -> t | ||
(** We pass [from] again here so we can filter out anything that GitHub included by accident. *) | ||
|
||
val is_empty : t -> bool | ||
|
||
val to_8601 : float -> string | ||
(** [to_8601 time] is [time] formatted as an ISO 8601 datestamp. *) | ||
|
||
val pp : t Fmt.t | ||
(** [pp] formats as markdown. *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(executable | ||
(name main) | ||
(public_name get-activity) | ||
(libraries cohttp cohttp-lwt cohttp-lwt-unix yojson)) | ||
(libraries cohttp cohttp-lwt cohttp-lwt-unix yojson cmdliner)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,13 @@ | |
(source (github talex5/get-activity)) | ||
(authors "[email protected]") | ||
(maintainers "[email protected]") | ||
|
||
(package | ||
(name get-activity) | ||
(synopsis "collect activity as markdown") | ||
(depends | ||
cmdliner | ||
cohttp | ||
cohttp-lwt | ||
cohttp-lwt-unix | ||
yojson | ||
(ocaml (>= 4.08)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters