aboutsummaryrefslogtreecommitdiffstats
path: root/commands/testdata/foo
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-12-22 15:51:14 +0100
committerRobin Jarry <robin@jarry.cc>2024-01-17 11:52:57 +0100
commit765761c5bf49799e7d74535b9727062c869fc358 (patch)
treed0a381d24165e20194bd90085e13c7ca8083a404 /commands/testdata/foo
parent4239f0d80204a2d1f7a2475adfd62b39cd86d075 (diff)
downloadaerc-765761c5bf49799e7d74535b9727062c869fc358.tar.gz
commands: simplify CompletePath
This function is overly complex, has code duplication and is not preserving user input (converting all paths to absolute paths). Simplify it and avoid converting relative paths to absolute ones. Add unit tests to ensure it works as expected. Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'commands/testdata/foo')
-rw-r--r--commands/testdata/foo/bar.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/testdata/foo/bar.json b/commands/testdata/foo/bar.json
new file mode 100644
index 00000000..0967ef42
--- /dev/null
+++ b/commands/testdata/foo/bar.json
@@ -0,0 +1 @@
+{}