Diego Cabello

<<<Back to Ents

Date:

Words: 301

Draft: < 25 (Most recent)

PRLENTS (PRototype Rust LENTS) is a version of LENTS written in the style of Rust CLI tools like ripgrep, zoxide, and fd.

Commands

Usage: lents <command> <operator> <arguments>

ENTS commands use inverse function mapping - one to many, not many to one. This is chosen so the first argument of one type can have many arguments (that are of a different type than the first and are all of a similar type) after it

process

Takes an ENTS file and processes it to a datafile.

  • Usage: lents process [tags.ents]
  • Notes: no additional operators or arguments
  • Alias: parse

ttf

Usage: lents ttf <add|remove> <arguments>*

Description: Manages relationships between one tag and many files

Alias: tagtofiles

  • add
    • Usage: lents ttf add <tag> <files>*
    • Description: creates links from one tag to \ge 1 files
    • Alias: assign
  • remove
    • Usage: lents ttf remove <tag> <files>*
    • Description: removes a link one from one tag to \ge 1 files
    • Alias: rm

ftt

Usage: lents ftt <add|remove> <arguments>*

Description: Manages relationships between one file and many tags

Alias: filetotags

  • add
    • Usage: lents ftt add <file> <tags>*
    • Description: creates links from one file to \ge 1 tags
    • Alias: assign
  • remove
    • Usage: lents ftt remove <file> <tags>*
    • Description: removes links from one file to \ge 1 tags
    • Alias: rm

filter

Usage: lents filter <tags>*

Description: Returns all files associated with any tags in arguments. The main command of LENTS, where the nesting comes into play. a boolean OR filter

Alias: fil

inspect

Usage: lents inspect <files>*

Description: Shows all the tags associated with a file.

Alias: insp

intersect

Usage: lents intersect <tags>*

Description: returns files associated with all tags. a boolean AND filter

Alias: int

Flags

  • -f, --force — used during assignment to break the exclusion assignment rules and re-assign a tag/file relationship
  • -q, --quiet — used during filtering to hide files that do not have any tags attatched to them or tags that don’t have any files attatched to them
  • -e, --explicit — used during filtering to suspend nested filtering, and to only show files that are explicitly attached to the tag
<<<Back to Ents

Made with Sculblog