Tilde program launcher
Go to file
Britt Gresham cd263b031c
Propose bashrc alias bootstrap flag
This commit proposes a bootstrap flag that can be passed into the contrib subapplication for backwards compatibility if applications disappear from `/usr/bin/`. Backwards compatibility would persist for those that opt into the feature by adding `source $(tilde contrib --bootstrap)` to their ~/.bashrc or added globally with a modification to /etc/bash_profile. Additionally new features would be made available to everyone who uses this command to bootstrap their shell environment as soon as they are approved by a server admin.
2018-02-19 17:20:39 -08:00
LICENSE Initial commit 2018-02-19 16:59:20 -08:00
README.md Propose bashrc alias bootstrap flag 2018-02-19 17:20:39 -08:00

README.md

tilde-launcher

background

As tilde.town has grown over the years, many users have produced interesting, useful, and/or fun tools for the community to use. It goes like this:

  • person writes a tool
  • person tells people in IRC about it
  • people link it from their ~/bin or just call the person's script directly
  • someone asks for the tool to be globally linked
  • eventually ~vilmibm runs ln -s ~/coolperson/bin/thing /usr/bin/

This works, but new users often ask "what tilde-specific commands can i run?" this is a good and reasonable question and it's hard to answer.

purpose

tilde-launcher serves as a welcome mat to all things tilde.town and executable.

usage

an interaction with tilde-launcher should look something like this:

$ tilde
    Welcome to tilde.town :) this program is your gateway to town-specific
    commands and features. Run tilde help to see the sort of things you can
    do.
$ tilde help
   You can use the following commands with the tilde program:
   
   chat     join the local IRC server
   contrib  run a community command like 'feels'
   help     display this help
   mail     check your tilde.town email
   page     alert ~vilmibm to an emergency
   poetry   generate poetry from cut-up text
   submit   suggest that a program be added to contrib
   toot     post a message to the community mastodon
   tweet    post a message to the community twitter
   wiki     access or update the town wiki

   You can also run:

   tilde help command

   and replace "command" with one of the above commands to get help specific
   to that command.
$ tilde contrib
    This command helps you run various community-maintained programs. If you
    want to see them all, use --list
$ tilde contrib --list
    botany
    feels
    writo
    # truncated for example's sake
$ tilde contrib --bootstrap
    alias botany='tilde contrib botany'
    alias feels='tilde contrib feels'
    alias writo='tilde contrib writo'
    # truncated for example's sake
    # For backwards compatability when included in ~/.bashrc as `source $(tilde contrib --bootstrap)`
$ tilde contrib botany
    # ...runs botany
$ vim cool_program
$ tilde submit cool_program
   You've submitted cool_program to ~vilmibm for review! check your tildemail
   in a few days for an update.

project goals

  • As thin as possible. No actual logic should be run here.
  • Easy to add to. Commands should be made available with symlinking.
  • Beginner friendly. Shouldn't use any words that go undefined or aren't self-evident for a newcomer to Unix/Linux.

Open questions

  1. Should this be implemented in a shell script? Or something higher level?
  2. Does this obsolete tildetown-scripts should it?
  3. Should this eventually expose the admin functions afforded by tildetown-admin?