You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+53-1Lines changed: 53 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -280,6 +280,7 @@ devrc_config:
280
280
global: true
281
281
interpreter: /bin/bash -c
282
282
default: [task_1, task_2]
283
+
cache_ttl: 5m
283
284
284
285
```
285
286
@@ -566,7 +567,7 @@ colors: |
566
567
More examples can be found [here](https://github.com/devrc-hub/devrc/blob/master/examples/deno_usage.yml).
567
568
568
569
569
-
### Relative path resolving
570
+
### Files include and relative path resolving
570
571
571
572
devrc allows you to load tasks, variables, and environment variables using the import mechanism. Files can be included by specifying an absolute path, URL address, or relative path. In turn, imported devrc files can include other files using relative paths. There are several strategies for resolving relative paths. By default, the strategy is to use the directory of the loaded file as the base path. The connection strategy for a specific file can be specified using the `path_resolve` option.
572
573
@@ -608,8 +609,59 @@ include:
608
609
5. Then, the `local_2.yml` file will be loaded from the local source `/projects/awesome_project/devrcfiles/local_2.yml`;
609
610
6. Finally, the `local_3.yml` file will be loaded from the local source `/projects/awesome_project/local_3.yml`.
610
611
612
+
#### Authentication
611
613
614
+
devrc supports using authorization data from the .netrc file to download devrc files that are protected by authorization. For example, from a private repository on GitLab or GitHub.
When downloading the devrc file, it will send the header `PRIVATE-TOKEN: password`.
660
+
661
+
662
+
#### Cache
663
+
664
+
devrc files from remote sources are cached in the file system. If the cached file lifetime exceeds the time specified in the `devrc_config.cache_ttl` option, the file is downloaded from the remote source.
0 commit comments