aboutsummaryrefslogtreecommitdiff
path: root/main.ts
diff options
context:
space:
mode:
authorFridon <[email protected]>2022-06-20 17:04:00 +0400
committerFridon <[email protected]>2022-06-20 17:04:00 +0400
commit82a2f864b8f676b575d075151d7a2db0fe663b51 (patch)
tree6198ec3cd7e2b96d08f631ed78c8a90d6d1ea362 /main.ts
parent5a801fa98fb052d9f4bbd90f497f076e9c5425c1 (diff)
downloadcountryfetch-82a2f864b8f676b575d075151d7a2db0fe663b51.tar.xz
countryfetch-82a2f864b8f676b575d075151d7a2db0fe663b51.zip
store and read data in ~/.cache/countries
Diffstat (limited to 'main.ts')
-rw-r--r--main.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.ts b/main.ts
index 7577785..018f914 100644
--- a/main.ts
+++ b/main.ts
@@ -1,6 +1,7 @@
import { Countries } from "./countries.ts";
+import { Cache } from "./util/cache.ts";
-const countries = new Countries();
+const countries = new Countries(new Cache());
await countries.sync();