summaryrefslogtreecommitdiff
path: root/summain.md
diff options
context:
space:
mode:
Diffstat (limited to 'summain.md')
-rw-r--r--summain.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/summain.md b/summain.md
index 4652c7e..db22d04 100644
--- a/summain.md
+++ b/summain.md
@@ -85,6 +85,7 @@ mtime_nsec: 0
nlink: 2
size: ~
sha256: ~
+target: ~
```
## Writeable file
@@ -108,6 +109,7 @@ mtime_nsec: 0
nlink: 1
size: 0
sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+target: ~
```
## Read-only file
@@ -130,6 +132,7 @@ mtime_nsec: 0
nlink: 1
size: 0
sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+target: ~
```
## Two files sorted
@@ -154,6 +157,7 @@ mtime_nsec: 0
nlink: 1
size: 0
sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+target: ~
---
path: bbb
mode: "-r--r--r--"
@@ -162,6 +166,29 @@ mtime_nsec: 0
nlink: 1
size: 0
sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+target: ~
+```
+
+## Symlink
+
+~~~scenario
+given an installed summain
+given symlink ccc pointing at aaa
+and mtime for ccc is 44
+when I run summain ccc
+then output matches file ccc.yaml
+~~~
+
+```{#ccc.yaml .file .numberLines}
+---
+path: ccc
+mode: lrwxrwxrwx
+mtime: 44
+mtime_nsec: 0
+nlink: 1
+size: 3
+sha256: ~
+target: aaa
```
---