td

command module
v0.0.0-...-b7b28da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2018 License: MPL-2.0 Imports: 9 Imported by: 0

README

td Build Status

This is a CLI application for my To Do service.

Usage

Login & logout

First of all, we have to login.

$ td login

It will ask for the full URL of the server that is running our To Do instance, the user name and its password. If we're successful, the user will get authenticated and its topics will be fetched automatically.

We don't have to do this again, this user will be logged in from now on. However, you might want to delete the current session. For this you can just use the logout command.

Commands

After logging in, you can just perform the following command:

$ td

This will fetch the topics from your server and open up your favorite editor (through the EDITOR env. variable). When you are done, close your editor and it will automatically push to the server the topics that have changed.

Besides editing, you can create, delete and rename. See:

$ td create test
$ td rename oldname newname
$ td delete another

Finally, note that you don't have to open the editor to know the topics that you have. You can just perform the list command for that. For more information, just use the help command.

Bash completion

This package includes a shell script that offers bash completion for this application. The completion file is scripts/tdcompletion.sh. Install it wherever you want and source it in your .bashrc file.

License

Copyright © 2014-2017 Miquel Sabaté Solà

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL