Goffi
364130bcbe
jp (pubsub, common): fixed last item edition (keep item id instead of creating a new one)
2017-06-28 20:28:24 +02:00
Goffi
c2ae6579c3
jp (cmd_pubsub): xmpp: uri handling, first draft
2017-06-28 19:19:08 +02:00
Goffi
9322d617d4
jp (input): input command first draft:
...
this is an experimental command to use external data as input arguments.
A series of data is used (only CSV is implemented so far), and it is used to fill argument of a command according to a sequence.
The sequence is given using input arguments, with types corresponding to the data found (short option, long option, stdin).
e.g. if a CSV file has row with 3 columns, we can say that column 1 is subject (long option), column 2 is body (stdin), and column 3 is language (short option -l).
A filter can be used after each option type, to transform read value.
Finally a static part is used to have the main command and non dynamic arguments to use.
2017-06-28 01:28:41 +02:00
Goffi
e8409b13e6
jp (base): added no_lf in disp() to avoid printing a line feed
2017-06-28 01:21:49 +02:00
Goffi
be2bb0ff3f
jp (common): added --last-item to take last item when no item id is found/given
2017-06-28 01:20:44 +02:00
Goffi
7f13ed15fd
jp (pubsub/edit): new edit subcommand, which work in a same way as for blog
2017-06-27 19:38:22 +02:00
Goffi
5af5b344e5
jp (pubsub): psItemGet has been renamed to psItemsGet as several items are gotten
2017-06-27 19:38:22 +02:00
Goffi
2449721982
jp (blog, common): various fixes in common and blog:
...
- parse_args has been moved to common
- cat_dir is converted to str on BaseEdit init, so it can be use to make str path for files manipulation
- fixed use of EDITOR_ARGS_MAGIC when use_metadata is False
- fixed unlink of metadata files when use_metadata is False
2017-06-27 19:38:22 +02:00
Goffi
71d61f372f
jp (blog): minor typo fix
2017-06-27 17:02:10 +02:00
Goffi
6025cc4e3b
jp (blog, common): added --force-item option to avoid magic and use argument as actual item id:
...
- creation of new item with item id has been fixed
- --force-item allow to use url as item id, or keyword
- pubsub_item can is now returned by getItemPath. If not None, the id is known and must be used
2017-06-27 17:00:52 +02:00
Goffi
5eda63d99e
jp (blog, common): moved and improved edit code from blog:
...
- a new "common" module is there for code commonly used in commands
- moved code for editing item with $EDITOR there
- moved code to identify item to edit there
- aforementioned fontions have been made generic
- a class BaseEdit is now available to implement edition
- HTTPS links are handled (only HTTP links were working before)
- item can be use if all previous methods fail (url, keyword, file path).
2017-06-27 16:23:28 +02:00
Goffi
7edc9c8a3b
jp (constants): added exit code for data error.
2017-06-27 16:14:58 +02:00
Goffi
be9de5afc4
jp (blog): added language in managed keys
2017-06-25 09:43:04 +02:00
Goffi
b18523e615
jp (invitation): fixed inconsistency in language handling
2017-06-21 08:00:14 +02:00
Goffi
b7a0972237
jp (identity): new identity command to handle the new plugin identity in backend, and maybe other plugins like vcard in the future
2017-05-21 20:06:07 +02:00
Goffi
2ca6788477
jp (invitation): fixed typo
2017-05-21 19:57:46 +02:00
Goffi
40e764cab5
jp (output/template): initialize template rendered only if a rendering is actually needed
2017-05-21 15:52:23 +02:00
Goffi
9ea4dba14d
jp (event): don't use dayfirst for YY-MM-DD style dates
2017-05-21 15:47:53 +02:00
Goffi
2359f3908a
jp (event): creation/modification of main event + invitee commands are now in a "invitee" subcommand
2017-05-19 12:45:26 +02:00
Goffi
48100ac776
jp (uri): new command to parse or generate XMPP URIs
2017-05-19 12:34:33 +02:00
Goffi
4ea36624a2
jp (pubsub/uri): fixed URI generation
2017-05-19 12:33:54 +02:00
Goffi
c8b4b77908
jp: fixed progress
2017-05-04 00:36:03 +02:00
Goffi
a5bc67ef6a
jp (event): event handling commands, first draft
2017-04-27 01:02:05 +02:00
Goffi
e12e25d1bf
jp: added use_pubsub and use_pubsub_node_req arguments to CommandBase
...
pubsub add --node and --service arguments
pubsub_node_req add --service and a positional node argument (i.e. mandatory)
2017-04-27 01:01:43 +02:00
Goffi
f07c5991ea
jp (invitation): added list subcommand
2017-04-27 00:59:25 +02:00
Goffi
e255b969e0
jp (output): added LIST_DICT output, to handle list of dictionaries
2017-04-27 00:58:12 +02:00
Goffi
6e70992c6c
jp: added constant to handle ANSI code for header and subheaders
2017-04-27 00:57:04 +02:00
Goffi
8a38c20d92
jp (blog): service and node can now be specified for edit command
2017-04-16 18:00:45 +02:00
Goffi
f89b014caa
jp (pubsub): added uri command to build pubsub URI
2017-04-16 17:59:54 +02:00
Goffi
55b6199997
jp (pubsub/node): added create and delete commands
2017-04-03 00:23:01 +02:00
Goffi
fcbeec5fa5
jp (invitation): added modify command
2017-04-03 00:23:01 +02:00
Goffi
697da436af
plugin XEP-0060: node create/delete improvments:
...
- use client instead of profile for createNode and deleteNode
- new bridge method psCreateNode
- renamed psDeleteNode to psNodeDelete
2017-04-03 00:22:58 +02:00
Goffi
d70547a611
jp (invitation): invitation command first draft
2017-03-29 19:42:44 +02:00
Goffi
fce4b9fd1b
jp (pubsub/get): --service is now optional argument, and sub_id now use "-S" short option
2017-03-29 19:42:44 +02:00
Goffi
f7657610f4
jp (base): added msg and exit_code argument to errback so it's more generic
2017-03-29 19:42:44 +02:00
Goffi
3eb7074f26
jp (pubsub/node) added pubsub/node/affiliations/set command
2017-03-26 18:08:05 +02:00
Goffi
281c514ae4
jp (pubsub): added affiliations and node/affiliations/get:
...
affiliations allow to retrieve all node were a profile is affiliated on a service, or the affiliation on a specific node.
node/affiliations/get is for node owner and allow to retrieve who is affiliated with a node and which kind of affiliation.
2017-03-23 21:04:01 +01:00
Goffi
afef209d70
jp (pubsub/node): added set command
2017-03-14 00:21:20 +01:00
Goffi
b9db15510f
jp (pubsub): added pubsub/node/info command to retrieve node configuration
2017-03-13 23:18:57 +01:00
Goffi
ba8534ee4f
plugin XEP-0060: renamed psGet bridge method to psItemGet
2017-03-13 23:17:13 +01:00
Goffi
444926825c
jp (output dict): added color and no-header option
2017-03-13 23:15:06 +01:00
Goffi
b6c9073322
jp (base): raise InternalError if output is used when use_output is not declared
2017-03-13 23:14:00 +01:00
Goffi
2c6afc6d4f
jp (output xml): remove blank spaces on parsing for better pretty printing
2017-03-13 23:12:57 +01:00
Goffi
220042d6b1
jp(pubsub/get): pubsub/get command, first draft
2017-03-12 23:34:51 +01:00
Goffi
6fd7bd5313
jp (outputs): new xml and list_xml outputs, handling pretty formatting and syntax highlighting
2017-03-12 23:34:19 +01:00
Goffi
4d96b85178
jp (base): output can now specify a default when registering
2017-03-12 23:33:26 +01:00
Goffi
09bf7b9b11
jp (base): replaced log.warning by stderr prints
2017-03-12 23:32:43 +01:00
Goffi
a860999204
jp (outputs): moved output options parsing and checking to base methods
2017-03-12 23:31:06 +01:00
Goffi
48a5f1f4c7
jp (std output): force unicode on simple output
2017-03-12 23:29:09 +01:00
Goffi
bb48d87434
jp (account): command to handle XMPP account creation/password change/deletion using in-band registration
2017-03-09 23:11:42 +01:00