func SendTo(recipient string, args []string) error {
	if len(args) < 1 {
		return fmt.Errorf("Not enough arguments - %s", Usage())
	}
	fmt.Printf("Sending %d %s to %s as %s...\n", len(args), filesString(len(args)), recipient, client.Config["sender"])
	keyURL := fmt.Sprintf(client.Config["keyserver"], recipient)
	keyPath, err := client.LoadKey(recipient, keyURL)
	if err != nil {
		return fmt.Errorf("Failed to find key:%s", err)
	}
	fmt.Printf("Loaded key for %s:\n%s\n", recipient, keyPath)
	dataPath, err := client.EncryptFiles(args, recipient, keyPath)
	if err != nil {
		return fmt.Errorf("Failed to encrypt: %s", err)
	}
	postURL := fmt.Sprintf("%s/files/create", client.Config["server"])
	fmt.Printf("Sending files for %s to %s\n", recipient, postURL)
	err = client.PostData(client.Config["sender"], recipient, dataPath, postURL)
	if err != nil {
		return fmt.Errorf("Failed to send: %s", err)
	}
	return nil
}
SendTo sends files held in args to recipient
package main
import (
	"fmt"
	"log"
	"os"
	"github.com/send-to/sendto/client"
)
const (
	v = "0.1.2"
)
func main() {
	command := ""
	args := os.Args[1:]  
	if len(args) > 0 {
		command = args[0]
		args = args[1:]
	}
	err := client.LoadConfig()
	if err != nil {
		log.Fatalf("Error reading config: %s", err)
	}
	switch command {
	case "encrypt", "e":
		err = Encrypt(args)
	case "decrypt", "d":
		err = Decrypt(args)
	case "identity", "i":
		err = Identity(args)
	case "version", "v":
		Version()
	case "help", "h":
		Help()
	default:
		if len(args) > 0 {
			err = SendTo(command, args)
		} else {
			Help()
		}
	}
	if err != nil {
		log.Fatalf("Sorry, an error occurred sending files:\n%s", err)
	}
}
func Version() {
	fmt.Printf("\t-----\n\tSend to client - version:%s\n\t-----\n", v)
}
func Usage() string {
	return fmt.Sprintf("\tUsage: sendto kennygrant [files] - send files to the username kennygrant\n")
}
func Help() {
	Version()
	fmt.Printf(Usage())
	fmt.Printf("\t-----\n")
	fmt.Printf("\tCommands:\n")
	fmt.Printf("\tsendto version - display version\n")
	fmt.Printf("\tsendto [username] [files] - encrypt files for a given user\n")
	fmt.Printf("\tsendto encrypt [file] - encrypt a file\n")
	fmt.Printf("\tsendto identity [name] - sets default sender identity\n\n")
}
func Decrypt(args []string) error {
	log.Printf("Sorry, this client does not yet support decrypt")
	return nil
}
func Encrypt(args []string) error {
	log.Printf("Sorry, this client does not yet support encryption")
	return nil
}