CLI tools #261

Merged
elegaanz merged 7 commits from setup-tools into master 2018-10-06 13:28:14 +00:00
elegaanz commented 2018-10-04 20:50:09 +00:00 (Migrated from github.com)
  • New sub-crate: plume-cli
  • Creates a binary called 'plm'
  • Uses clap to parse CLI arguments
  • Add a first command: plm instance new (to init the local instance)

Example usage:

plm instance new -d foo.bar -n 'Hey'

Fix #260

- New sub-crate: plume-cli - Creates a binary called 'plm' - Uses clap to parse CLI arguments - Add a first command: plm instance new (to init the local instance) Example usage: ``` plm instance new -d foo.bar -n 'Hey' ``` Fix #260
EliotBerriot (Migrated from github.com) approved these changes 2018-10-06 11:23:12 +00:00
EliotBerriot (Migrated from github.com) left a comment

Looks good to me! I'll let you know if I have any issue next time I upgrade the instance using Docker :)

Looks good to me! I'll let you know if I have any issue next time I upgrade the instance using Docker :)
igalic (Migrated from github.com) reviewed 2018-10-06 11:38:11 +00:00
igalic (Migrated from github.com) left a comment

is plm supposed to only support Pg?

is plm supposed to only support Pg?
igalic (Migrated from github.com) commented 2018-10-06 11:36:38 +00:00

shouldn't this be database agnostic now?

shouldn't this be database agnostic now?
elegaanz (Migrated from github.com) reviewed 2018-10-06 11:52:25 +00:00
elegaanz (Migrated from github.com) commented 2018-10-06 11:52:25 +00:00

Oops, forgot it! 😁

Oops, forgot it! :grin:
elegaanz (Migrated from github.com) reviewed 2018-10-06 12:00:32 +00:00
elegaanz (Migrated from github.com) commented 2018-10-06 12:00:32 +00:00

Fixed

Fixed
elegaanz commented 2018-10-06 12:55:55 +00:00 (Migrated from github.com)

Will also fix #157 #89 and #209

Will also fix #157 #89 and #209
igalic (Migrated from github.com) reviewed 2018-10-06 13:36:08 +00:00
igalic (Migrated from github.com) left a comment

default license has changed!

default license has changed!
@ -0,0 +20,4 @@
- `--domain`, `-d`: the domain name on which your instance will be available.
- `--name`, `-n`: The name of your instance. It will be displayed on the homepage.
- `--default-license`, `-l`: the license to use for articles written on this instance, if no other license is explicitely specified. Optional, defaults to CC-0.
igalic (Migrated from github.com) commented 2018-10-06 13:29:13 +00:00

this is not correct anymore

this is not correct anymore
@ -133,44 +133,73 @@ This command may be useful if you decided to use a separate database server.
## Starting Plume
igalic (Migrated from github.com) commented 2018-10-06 13:30:51 +00:00

We should have fixed the info on how to compile Plume with sqlite in #226, why DM i only thinking of this now?

We should have fixed the info on how to compile Plume with sqlite in #226, why DM i only thinking of this now?
@ -0,0 +46,4 @@
.unwrap_or_else(|| env::var("BASE_URL")
.unwrap_or_else(|_| super::ask_for("Domain name")));
let name = args.value_of("name").map(String::from).unwrap_or_else(|| super::ask_for("Instance name"));
let license = args.value_of("default-license").map(String::from).unwrap_or(String::from("CC-0"));
igalic (Migrated from github.com) commented 2018-10-06 13:32:34 +00:00

we've decided to change the default license

we've decided to change the default license
igalic commented 2018-10-06 13:38:05 +00:00 (Migrated from github.com)

we have forgotten to fix up the compile / installation instructions after/with #226

we have forgotten to fix up the compile / installation instructions after/with #226
elegaanz commented 2018-10-06 13:43:31 +00:00 (Migrated from github.com)

@igalic yes, I thought about it a few minutes ago too. I will update them right now.

@igalic yes, I thought about it a few minutes ago too. I will update them right now.
elegaanz (Migrated from github.com) reviewed 2018-10-06 13:43:59 +00:00
@ -0,0 +20,4 @@
- `--domain`, `-d`: the domain name on which your instance will be available.
- `--name`, `-n`: The name of your instance. It will be displayed on the homepage.
- `--default-license`, `-l`: the license to use for articles written on this instance, if no other license is explicitely specified. Optional, defaults to CC-0.
elegaanz (Migrated from github.com) commented 2018-10-06 13:43:59 +00:00

Yes, but I will change everything in the same PR, so for now I used CC-0.

Yes, but I will change everything in the same PR, so for now I used CC-0.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#261
No description provided.