This repository has been archived by the owner on Feb 21, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Tags
Gabriel Sanches edited this page May 2, 2020
·
5 revisions
Tags are used to conditionally parse targets by following these rules:
- A target can have zero or more tags
- A target with no tags will always be parsed
- A target with one or more tags will only be parsed if any of its tags is passed to the parsing command
$ ls
tagged untagged pilgo.yml
$ plg show
.
├── tagged <- /home/me/.config/tagged
└── untagged <- /home/me/.config/untagged
$ plg config -tags test tagged
$ plg show
.
└── untagged <- /home/me/.config/untagged
$ plg show -tags test
.
├── tagged <- /home/me/.config/tagged
└── untagged <- /home/me/.config/untagged
$ ls
tagged untagged pilgo.yml
$ plg check
.
├── tagged <- /home/me/.config/tagged (READY)
└── untagged <- /home/me/.config/untagged (READY)
$ plg config -tags test tagged
$ plg check
.
└── untagged <- /home/me/.config/untagged (READY)
$ plg link
$ plg check
.
└── untagged <- /home/me/.config/untagged (DONE)
$ plg check -tags test
.
├── tagged <- /home/me/.config/tagged (READY)
└── untagged <- /home/me/.config/untagged (DONE)
$ plg link -tags test
$ plg check -tags test
.
├── tagged <- /home/me/.config/tagged (DONE)
└── untagged <- /home/me/.config/untagged (DONE)