diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-12-12 11:44:50 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-12-12 11:44:50 +0200 |
commit | 79183fab131b0e426abf647472469aed160e66f7 (patch) | |
tree | 156f23311b1e2ceabb069dd46bd4af871f5005d3 /summain.md | |
parent | 0e3bec381d9c1a04448b62483d1635961ca3b3d3 (diff) | |
download | summain-rs-79183fab131b0e426abf647472469aed160e66f7.tar.gz |
feat: support symbolic links
Diffstat (limited to 'summain.md')
-rw-r--r-- | summain.md | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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 ``` --- |