Matt Baer
8d4e0ec138
Correctly name fileutils package
This changes the containing dir name to match the fileutils package name.
6 년 전
Matt Baer
3f38fc3432
Move logging to new funcs & support -v flag
This simplifies logging and logging/exiting, plus supports the -v flag
for showing verbose output.
6 년 전
Matt Baer
5aded12ead
Use new `cli.ActionFunc` signature, pass around errors
A lot has changed to the previously named codegangsta/cli library, and
this gets up to date with everything, fixing issue #8 .
It also passes around errors from funcs that perform actions inside the
command funcs, for more Go-ness.
7 년 전
Matt Baer
1192d2dfda
Move main files to cmd folder
7 년 전
Matt Baer
4a5e8db5c2
Fix golint issues
- Adds comments where necessary
- Fixes some variable names
- Fixes if/else statements with returns
- Use fmt.Errorf(...)
8 년 전
Matt Baer
04048c50ae
Change consts to camelCase
8 년 전
Matt Baer
1765077dd0
Fix error in `writeas list` with no existing posts
Found while going over new functionality (#6 )
8 년 전
Matt Baer
3ad058d152
shrink some variable assignments to one line
8 년 전
Matt Baer
1d61f6f485
Prevent composed post data loss when posting fails
Keeps temporary post file around until a post successfully goes through.
8 년 전
Matt Baer
4a808d8c2d
Fix launching editor in Windows
Fixes the start command.
Saves the temporary file with .txt extension, so that Windows can correctly handle it.
8 년 전
Matt Baer
8c6a9e75b8
Add `new` subcommand
Creates a new temporary file and posts whatever was written to it once
the user exits their editor.
TODO: don't lose work if something goes wrong in the posting process
8 년 전
Matt Baer
c67c6e8324
Add error logging
8 년 전
Matt Baer
a37e09f8bb
List local posts
Includes --id and --url flags for customizing the output
9 년 전
Matt Baer
5bc0033471
Add post deletion without a token arg
9 년 전
Matt Baer
5c30b519e4
Move project to writeas subfolder
So the executable will be named "writeas"
9 년 전
Matt Baer
403bea55a8
Only panic from file errors when debugging
9 년 전
Matt Baer
d34584a1fb
Fix file writing on Windows
9 년 전
Matt Baer
0742ca9909
Save post IDs and tokens locally
Plus only show post URL upon success
9 년 전