TBR: rename /send to /share
The word "share" seems more appropriate.
Change-Id: I0cc0bab1c575f1ba2dbc5713598708eba0303021
diff --git a/diagrams/screenshot.png b/diagrams/screenshot.png
index 8a93a60..98fc3ef 100644
--- a/diagrams/screenshot.png
+++ b/diagrams/screenshot.png
Binary files differ
diff --git a/vmsg/chat.go b/vmsg/chat.go
index 8179f9e..0f18f86 100644
--- a/vmsg/chat.go
+++ b/vmsg/chat.go
@@ -139,7 +139,7 @@
print("*** /help to see this help message")
print("*** /ping to send a ping")
print("*** /quit to exit")
- print("*** /send <filename> to send a file")
+ print("*** /share <filename> to share a file")
print("***")
print("*** Type /quit or press Ctrl-C to exit.")
print("***")
@@ -177,8 +177,9 @@
mtxt = fmt.Sprintf("\x01PING %s %d", pingId, time.Now().UnixNano())
case mtxt == "/quit":
return gocui.Quit
- case strings.HasPrefix(mtxt, "/send"):
+ case strings.HasPrefix(mtxt, "/share"):
fname = strings.TrimSpace(mtxt[5:])
+ printf("### Sharing %s", fname)
mtxt = ""
case strings.HasPrefix(mtxt, "/"):
printf("### Unknown command %s", mtxt)
@@ -233,7 +234,7 @@
}
}
if filename != "" {
- fmt.Fprintf(&buf, "Received file from %s: %s", msg.SenderBlessings, filename)
+ fmt.Fprintf(&buf, "Received shared file from %s: %s", msg.SenderBlessings, filename)
}
print(buf.String())
}