Skip to content

ace-lab/pl-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pl-utils: *nix command-line utilities for working with PrairieLearn content

These require Ruby 2 or 3 to be installed. Saying gem install pl-utils will get you the following executables:

pl-tag {add|remove|set} tag1,tag2,tag3 file1.json file2.json

Add, remove, or set tags field in each JSON file (usually the info.json associated with a question), which is overwritten in place. Files with errors are skipped. If a tag to be added already exists in the file, it is not duplicated. If a tag to be removed doesn't already exist, it's fine.

To do it to lots of files, try find . (conditions for find)|xargs pl-tag add foobar

Warning: Files are overwritten in place! Be careful/do a git commit first!

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published