1
0
mirror of https://github.com/writeas/writeas-cli synced 2025-07-26 23:08:16 +00:00
Commit Graph

155 Commits

Author SHA1 Message Date
Rob Loranger
f227faa5dc
Closes T592 T593 T597 splits code into packages
this splits everything out into shared packages

- user config and application config share a package for now
- sync is part of the api package which includes the client, posts and
tor logic
- logging is it's own package
- commands are in their own package
2019-05-29 11:43:00 -07:00
Rob Loranger
efa3f32a35
Ref T597 split out shared code
first moving everything out into the base package
should be followed by some refactoring and reorganizing before creating
two different binaries for write.as and writefreely
2019-05-29 11:36:37 -07:00
Rob Loranger
0ebe4fc49c
add error check on log in attempt 2019-05-29 11:20:41 -07:00
f1e90e91b3 Mention dev environment in logs 2019-05-29 12:51:35 -04:00
Rob Loranger
6b2d2408f9
fix env variable typo for WRITEAS_EDITOR 2019-05-27 13:39:28 -07:00
23a30590aa Merge branch 'develop' into local-workflow 2019-05-26 16:31:01 -04:00
Matt Baer
7ed0b1d718
Merge pull request #21 from abhinav/gomod
Add go.mod/sum
2019-05-26 16:18:20 -04:00
Matt Baer
4b8449161b
Merge pull request #22 from abhinav/goimports
style: Run goimports on all Go files
2019-05-26 16:17:50 -04:00
Abhinav Gupta
71d204ab1c CONTRIBUTING: Add import group conventions
As discussed in #20, this adds import grouping recommendations to the
coding conventions section of CONTRIBUTING.md.

Note that I replaced `go fmt` with `goimports` because `goimports`
implements a superset of the `go fmt` functionality.
2018-12-17 07:52:00 -08:00
Abhinav Gupta
5dfb56ec48 style: Run goimports on all Go files
As discussed in #20, this runs `goimports` on all Go files separating
imports into two groups: standard library and everything else.
2018-12-17 07:52:00 -08:00
Abhinav Gupta
5a690720d1 Add go.mod/sum
This adds a go.mod and go.sum to the project.
2018-12-17 07:44:19 -08:00
035ffcde5f Relicense under GPL 2018-12-17 09:52:47 -05:00
18ce1fc0e3 Update UpdatePost and DeletePost calls to v2 2018-10-10 15:12:46 -04:00
8156f21643 Change WIP version to 1.99-dev 2018-10-01 11:42:03 -04:00
a98f507cfd Merge branch 'master' into local-workflow 2018-09-29 12:20:41 -04:00
f45f03b408 Bump version to 1.2 2018-09-29 12:18:05 -04:00
72444b09aa Add --md flag
This returns URLs with Markdown enabled. Part of #14
2018-09-29 12:17:03 -04:00
70c9e28db3 Update OSes in GUIDE 2018-09-29 12:13:30 -04:00
3bd82e36e5 Create .writeas_user file in Write.as posts dir 2018-09-27 21:25:31 -04:00
be18239017 Make "already auth'd" error more helpful 2018-09-27 21:17:07 -04:00
13cf6d1eda Bump version to 1.2-dev 2018-09-27 21:15:19 -04:00
3f1ac7df4f Update "not logged in" error message
Leave out -u option in writeas auth command
2018-09-27 15:08:28 -04:00
42374c4102 Support the -v/--verbose flag on all commands 2018-09-26 09:00:31 -04:00
2e95856826 Add 1.1 changes to Debian changelog 2018-09-25 13:07:56 -04:00
74fe88fa61 Merge branch 'debian' 2018-09-25 13:01:12 -04:00
9d9bfa4018 Merge branch 'debian' into local-workflow 2018-09-25 13:00:51 -04:00
8f9418246a Don't require -u flag for writeas auth
Instead of writeas auth -u <username>, now you can just use
writeas auth <username>
2018-09-24 14:42:34 -04:00
62263e5ce6 Import v2 of go-writeas repo 2018-09-24 11:51:16 -04:00
3011646553 Support changing post language 2018-09-20 12:31:43 +02:00
9807b0090e Automatically detect language when publishing 2018-09-20 12:28:57 +02:00
23d4a69204 Extract title when publishing or updating posts 2018-09-19 16:14:13 +01:00
b37d9f6996 Use dev endpoints when env var WRITEAS_DEV=1 2018-09-19 15:56:17 +01:00
40880f3167 Support updating auth'd user posts 2018-09-19 02:03:28 +01:00
e3dc39245c Show post title when fetching posts 2018-09-19 02:01:26 +01:00
9d0b93785b Delete local file when deleting anonymous post 2018-09-19 01:55:00 +01:00
abd989376c Support deleting auth'd user posts 2018-09-19 01:54:07 +01:00
90641dd12b Save post locally on publish
Only with `writeas publish` right now, and only if posts directory has
already been set up.
2018-09-19 01:38:02 +01:00
2c0fd7583f Support sending post language with --lang flag 2018-09-16 02:43:35 +02:00
a83410b717 Support publishing files
Adds new `writeas publish <file>` command
2018-09-16 02:29:15 +02:00
a2569848ec Include title in fetched posts 2018-09-15 10:30:49 +02:00
a63445f92a Fix Exists() test in fileutils 2018-09-14 19:44:10 +02:00
052c792391 Add writeas fetch command
This configures a directory for posts and downloads all posts on the
authenticated account into the directory, organizing collection posts
into their own subdirectories.
2018-09-14 19:42:29 +02:00
fe4c67ba00 Move "not auth'd" error to newClient()
This adds a new parameter that determines whether or not authentication
is required, and also returns an error now.
2018-09-12 19:28:18 -04:00
db3450b8cc Support logging out 2018-09-12 11:26:20 -04:00
5ec4a02c7a Support publishing to a blog
Closes #16
2018-09-10 15:01:30 -04:00
257b969216 Make authenticated requests
If you're logged in, now requests will be made with the saved token
2018-09-10 14:57:16 -04:00
97f29319ee Save authenticated user information in JSON
Instead of using an INI file for the access token, this stores it and
other user information in a single JSON file.
2018-09-10 12:33:05 -04:00
48b51417ff Prevent authenticating when user already did that 2018-09-08 16:17:05 -04:00
fca81a9456 Update docs with updated flags + new auth command 2018-09-08 16:10:58 -04:00
02145b3acb Support user authentication
Adds new `writeas auth` command and saves user's access token to a new
local configuration file.

This closes #10 / T191
2018-09-08 16:00:48 -04:00