From c4aa3661d23cd435356a3c27ad3a9a914f6a8af7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= <hugo@lysator.liu.se>
Date: Mon, 3 Jul 2023 23:49:16 +0200
Subject: [PATCH] Move cache to muppet-strings dir.

---
 muppet/__main__.py      | 4 ++--
 muppet/puppet/parser.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/muppet/__main__.py b/muppet/__main__.py
index d72c161..46aecc4 100644
--- a/muppet/__main__.py
+++ b/muppet/__main__.py
@@ -25,7 +25,7 @@ logger.addHandler(ch)
 
 def __main() -> None:
     parser = argparse.ArgumentParser(
-            prog='puppet-doc configure',
+            prog='muppet',
             description='Sets up puppet doc')
 
     parser.add_argument('--env', action='store', default='/etc/puppetlabs/code/modules',
@@ -46,7 +46,7 @@ def __main() -> None:
 
     env = args.env
 
-    cache = Cache('/home/hugo/.cache/puppet-doc')
+    cache = Cache('/home/hugo/.cache/muppet-strings')
 
     modules: list[ModuleEntry]
     if args.modules != []:
diff --git a/muppet/puppet/parser.py b/muppet/puppet/parser.py
index b957303..b3724eb 100644
--- a/muppet/puppet/parser.py
+++ b/muppet/puppet/parser.py
@@ -18,7 +18,7 @@ logger = logging.getLogger(__name__)
 
 
 # TODO cache path
-cache = Cache('/home/hugo/.cache/puppet-doc')
+cache = Cache('/home/hugo/.cache/muppet-strings')
 
 
 def tagged_list_to_dict(lst: list[Any]) -> dict[Any, Any]:
-- 
GitLab