To keep the API interface simple: what about only using the option "opt_in=True" #13

Open
opened 2020-11-26 17:24:21 +01:00 by mb · 2 comments

(API thoughts that boiled up in a conversation @ pub.club)

(API thoughts that boiled up in a conversation @ pub.club)
Author

Another suggestion is to also add the folder="FOLDERNAME".

Another suggestion is to also add the folder="FOLDERNAME".
Owner

One idea is take all command line arguments as they stand on the command line and thread them through via the magic word API interface. So if you use --publish-opt-in on the CLI you pass publish_opt_in=True in the function definition.

Then the other idea was that the command line interface is confusing so we should make it easier to use when writing th script. But of course, we're just making new conventions and running into new confusions with that :)

Anyway, just writing before I forget.

One idea is take all command line arguments as they stand on the command line and thread them through via the magic word API interface. So if you use `--publish-opt-in` on the CLI you pass `publish_opt_in=True` in the function definition. Then the other idea was that the command line interface is confusing so we should make it easier to use when writing th script. But of course, we're just making new conventions and running into new confusions with that :) Anyway, just writing before I forget.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
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: varia/etherpump#13
No description provided.