File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,20 @@ type t = {
15
15
state : State_t .state ;
16
16
}
17
17
18
- let default : t =
18
+ let default_config_filename = " monorobot.json"
19
+
20
+ let default_secrets_filepath = " secrets.json"
21
+
22
+ let make ?config_filename ?secrets_filepath ?state_filepath () =
19
23
{
20
- config_filename = " monorobot.json " ;
21
- secrets_filepath = " secrets.json " ;
22
- state_filepath = None ;
24
+ config_filename = Option. value config_filename ~default: default_config_filename ;
25
+ secrets_filepath = Option. value secrets_filepath ~default: default_secrets_filepath ;
26
+ state_filepath;
23
27
secrets = None ;
24
28
config = Stringtbl. empty () ;
25
29
state = State. empty () ;
26
30
}
27
31
28
- let make ?config_filename ?secrets_filepath ?state_filepath () =
29
- let config_filename = Option. value config_filename ~default: default.config_filename in
30
- let secrets_filepath = Option. value secrets_filepath ~default: default.secrets_filepath in
31
- { default with config_filename; secrets_filepath; state_filepath }
32
-
33
32
let get_secrets_exn ctx =
34
33
match ctx.secrets with
35
34
| None -> context_error " secrets is uninitialized"
You can’t perform that action at this time.
0 commit comments