From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
Subject: [sup-talk] [PATCH] Add a startup hook.
Date: Tue, 19 Feb 2008 11:17:59 +0100 [thread overview]
Message-ID: <12034162793917-git-send-email-nicolas.pouillard@gmail.com> (raw)
---
bin/sup | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/bin/sup b/bin/sup
index 0a35fd7..0d34215 100644
--- a/bin/sup
+++ b/bin/sup
@@ -39,6 +39,12 @@ EOS
opt :compose, "Compose message to this recipient upon startup", :type => String
end
+Redwood::HookManager.register "startup", <<EOS
+Executes at startup
+No variables.
+No return value.
+EOS
+
if $opts[:list_hooks]
Redwood::HookManager.print_hooks
exit
@@ -128,6 +134,8 @@ begin
Index.add_source SentManager.new_source
end
+ HookManager.run "startup"
+
log "starting curses"
start_cursing
--
1.5.3.1.109.gacd69
next reply other threads:[~2008-02-19 10:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-19 10:17 Nicolas Pouillard [this message]
2008-02-20 2:55 ` William Morgan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12034162793917-git-send-email-nicolas.pouillard@gmail.com \
--to=nicolas.pouillard@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox