summaryrefslogtreecommitdiff
path: root/apply/status.py
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-04-25 20:12:25 +0200
committerJulian T <julian@jtle.dk>2021-04-25 20:12:25 +0200
commit7e93444f28a6790ab66fbdd8cc7eed9ca8970d48 (patch)
treefec5eb7eb328948d5c30d2e1d56e4c570d5dcc4c /apply/status.py
parent0c24ead1cb0126a1847c2ed971649e9ee25e920e (diff)
Add kind of working delete command
Diffstat (limited to 'apply/status.py')
-rw-r--r--apply/status.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/apply/status.py b/apply/status.py
deleted file mode 100644
index 514252b..0000000
--- a/apply/status.py
+++ /dev/null
@@ -1,24 +0,0 @@
-import argparse
-from .state import StateFile, FileState
-from pathlib import Path
-from tabulate import tabulate
-
-
-def cmd_args(_: argparse.ArgumentParser):
- pass
-
-
-def cmd_func(args, config):
- state = StateFile(args.apply_dir)
- rows = []
- for link in state.links:
- st = FileState.check_location(Path(link))
- rows.append((link, st.check_string(Path.cwd())))
-
- print(tabulate(rows, headers=["Link", "Status"]), "\n")
-
- rows = state.dirs.items()
- print(tabulate(rows, headers=["Directory", "Owned by"]))
-
-
-cmd_help = "Check status on owned links"