SUR(1)

πŸ’– SUR(1) β€” subtle user repository πŸŽ€

okay so bestie, you found SUR(1) in the manual and now we're gonna read it together, no cap ✨


🌸 NAME 🌸

sur β€” subtle user repository πŸ¦‹


✨ SYNOPSIS ✨

sur COMMAND OPTIONS

πŸ’… DESCIPTION πŸ’…

okay so sur is the subtle user repository and also a manager for sublets, in a very rubygems-like fashion πŸ’–

The whole main character goal of sur is to help you manage sublets, and to give everyone one central place where new sublets can be found. And additionally (yes, there's more, we're obsessed), sur has some capabilities to create and test sublets too 🫢


πŸ‘‘ COMMANDS πŸ‘‘

  • sur annotate NAME [-v VERSION|-h] β€” Mark a sublet as to be reviewed ✍️
  • sur build SPEC β€” Create a sublet package πŸ“¦
  • sur config NAME β€” Show available config settings of a sublet βš™οΈ
  • sur fetch NAME β€” Download sublet to current directory ⬇️
  • sur help β€” Show this help and exit πŸ™‹
  • sur grabs NAME β€” Show available grabs provided by a sublet 🎣
  • sur info NAME β€” Show info about an installed sublet ℹ️
  • sur install NAME [-R|-t|-v VERSION|-h] β€” Install a sublet πŸ’Ύ
  • sur list [-l|-r|-h] β€” List local/remote sublets πŸ“‹
  • sur notes NAME β€” Show notes about a sublet πŸ“
  • sur query NAME [-e|-l|-r|-t|-v VERSION|-h] β€” Query for a sublet (e.g clock, clock -v 0.3) πŸ”
  • sur reorder β€” Reorder installed sublets for loading order πŸ”€
  • sur server [-p PORT|-h] β€” Serve sublets (default: http://localhost:4567) 🌐
  • sur submit FILE β€” Submit a sublet to SUR πŸ“€
  • sur template FILE β€” Create a new sublet template in current dir 🧚
  • sur test NAME [-C VALUE|-h] β€” Test given sublets for syntax and functionality πŸ§ͺ
  • sur uninstall NAME [-R|-t|-v VERSION|-h] β€” Uninstall a sublet πŸ—‘οΈ
  • sur unpack NAME [-t|-v VERSION|-h] β€” Unpack a sublet in current directory πŸ“‚
  • sur update [-l|-r|-h] β€” Update local/remote sublet cache πŸ”„
  • sur upgrade [-R|-y|-h] β€” Upgrade all installed sublets ⬆️
  • sur version β€” Show version info and exit 🏷️
  • sur yank NAME β€” Delete sublet from server πŸ’€

⭐ OPTIONS ⭐

🌈 annotate NAME [-v VERSION|-h]

  • -v, --version VERSION β€” Annotate a specific version
  • -h, --help β€” Show this help and exit

🌈 fetch NAME [-t|-v VERSION|-h]

  • -t, --tags β€” Include tags in search
  • -v, --version VERSION β€” Annotate a specific version
  • -h, --help β€” Show this help and exit

🌈 install NAME [-R|-t|-v VERSION|-h]

  • -R, --reload β€” Reload sublets after installing
  • -t, --tags β€” Include tags in search
  • -v, --version VERSION β€” Search for a specific version
  • -h, --help β€” Show this help and exit

🌈 list [-l|-r|-h]

  • -l, --local β€” Select local repository (default)
  • -r, --remote β€” Select remote repository
  • -h, --help β€” Show this help and exit

🌈 query NAME [-e|-l|-r|-t|-v VERSION|-h]

  • -e, --regex β€” Use regex for query
  • -l, --local β€” Select local repository (default)
  • -r, --remote β€” Select remote repository
  • -t, --tags β€” Include tags in search
  • -v, --version VERSION β€” Search for a specific version
  • -h, --help β€” Show this help and exit

🌈 server [-p PORT|-h]

  • -p, --port β€” Select a specific port
  • -h, --help β€” Show this help and exit

🌈 test NAME [-C VALUE|-h]

  • -C, --config VALUE β€” Add config value (can be used multiple times)
  • -h, --help β€” Show this help and exit

🌈 unpack NAME [-t|-v VERSION|-h]

  • -t, --tag β€” Search for a specific tag
  • -v, --version VERSION β€” Search for a specific version
  • -h, --help β€” Show this help and exit

🌈 uninstall NAME [-R|-t|-v VERSION|-h]

  • -R, --reload β€” Reload sublets after installing
  • -t, --tag β€” Search for a specific tag
  • -v, --version VERSION β€” Search for a specific version
  • -h, --help β€” Show this help and exit

🌈 update [-l|-r|-h]

  • -l, --local β€” Select local repository (default)
  • -r, --remote β€” Select remote repository
  • -h, --help β€” Show this help and exit

🌈 upgrade [-R|-y|-h]

  • -R, --reload β€” Reload sublets after upgrading
  • -y, --yes β€” Assume yes to questions
  • -h, --help β€” Show this help and exit

πŸ¦‹ EXAMPLES πŸ¦‹

sur install clock
sur query -r clock
sur uninstall -v 0.1 clock

πŸŽ€ SPECIFICATION πŸŽ€

So to create a sublet, you need to create a specification β€” and a specification is basically just a lil bundle of info about your sublet πŸ’–

Here's the full list of known attributes:

  • name β€” Name of the sublet
spec.name = "Sublet"
  • version β€” Version of the sublet
spec.version = "0.1"
  • tags β€” List of tags to categorize the sublet
spec.tags = [ "Broken" ]
  • files β€” List of files in the sublet
spec.files = [ "sublet.rb" ]
  • icons β€” List of supplied icons
spec.icons = [ "icon.xbm" ]
  • description β€” Description of the sublet
spec.description = "A shiny new sublet"
  • notes β€” Longer description of the sublet
spec.notes = <<NOTES
"This sublet is just a dummy, have fun with it!"
NOTES
  • authors β€” List of authors of the sublet in case there are more than one
spec.authors = [ "You" ]
  • contact β€” Contact mail address
spec.contact = "your@mail.com"
  • date β€” Date of creation
spec.date = "Sat Sep 13 19:00 CET 2008"
  • config β€” Description of config settings
spec.config = [
{

:name        => "format_string",
:type        => "string",
:description => "Format of the clock (man date)" },
:def_value   => "Default value"

}
]
  • grabs β€” Description of grabs
spec.grabs = [
{

:SubletTest => "Test grab",

}
]
  • required_version β€” Required version of subtle
spec.required_version = "0.9.10"
  • add_dependency(name, version) β€” Add a gem dependency
spec.add_dependency("a_gem", "0.0")

And if you use the template command, sur will create an empty template with a spec file for you 🧚✨


πŸ™ˆ BUGS πŸ™ˆ

Report bugs at http://subforge.org/projects/subtle/issues

Homepage: http://subtle.subforge.org


Copyright (c) Christoph Kappel unexist@dorfelite.net


🌟 SEE ALSO 🌟

surserver(1), subtle(1), subtler(1), subtlext(1)


and that's the whole page bestie!! this one is from October 2011, and yes it's SUR(1) β€” the subtle user repository manual πŸ’…βœ¨ go forth and manage your sublets, you absolute icon πŸ‘‘πŸ«Ά