Re: [fossil-users] Adding attachments via the command line

2016-01-04 Thread David Vines



On 04/01/2016 12:21, Stephan Beal wrote:


fossil att[achment] add ...

If it's a subcommand of "wiki" then the ability to use any unique short
form of it doesn't come for free (that only works for top-level commands).

:-?



I was unaware of this capability, and it makes sense to me. The length 
of the command didn't worry me since my main use is from inside an ant 
script, but I can see the advantage and I'm very happy to make this change.


David
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding attachments via the command line

2016-01-04 Thread Stephan Beal
On Sat, Jan 2, 2016 at 11:31 AM, David Vines 
wrote:

> I now have a prototype for command line access to add attachments to wiki
> pages and tech notes. I'd like to ask for any feedback on the command
> itself before I polish my changes and put the changes up for review:
>
>fossil wiki attachment add ?PAGENAME? FILENAME [-t|--technote DATETIME ]
>
>   Add an attachment to an existing wiki page or tech note. One of
>   PAGENAME or DATETIME must be specified.
>
> I made "attachment" as a noun to allow for the later addition of other
> verbs like list and export. I don't propose to change the ticket since (a)
> I don't need it myself and (b) the existing ticket command just modifies
> the metadata for existing tickets and doesn't allow creation of tickets or
> the addition of text to existing tickets.



i like the idea but am concerned that "attachment" might be annoyingly long
to type on the CLI. If you'll move it into its own top-level command then
it could take advantage of fossil's built-in "auto-shortening" of top-level
commands, e.g.:

fossil att[achment] add ...

If it's a subcommand of "wiki" then the ability to use any unique short
form of it doesn't come for free (that only works for top-level commands).

:-?

- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding attachments via the command line

2016-01-04 Thread David Vines



On 04/01/2016 14:07, John P. Rouillard wrote:

In message <568a7b26.7020...@zombi.eclipse.co.uk>,
David Vines writes:

On 04/01/2016 12:21, Stephan Beal wrote:


fossil att[achment] add ...

If it's a subcommand of "wiki" then the ability to use any unique short
form of it doesn't come for free (that only works for top-level commands).

I was unaware of this capability, and it makes sense to me. The length
of the command didn't worry me [...]
but I can see the advantage and I'm very happy to make this change.


Would this change also make sense for (a future extension) of fossil
att[chment] --ticket , to add an attachment to a ticket?



It does, though adding an "attachment" subcommand to ticket would have 
been the corresponding variate.


Would adding the capability be of use to you? It's a relatively trivial 
extension to an attachment command version


David
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Adding attachments via the command line

2016-01-02 Thread David Vines
I now have a prototype for command line access to add attachments to 
wiki pages and tech notes. I'd like to ask for any feedback on the 
command itself before I polish my changes and put the changes up for review:


   fossil wiki attachment add ?PAGENAME? FILENAME [-t|--technote DATETIME ]

  Add an attachment to an existing wiki page or tech note. One of
  PAGENAME or DATETIME must be specified.

I made "attachment" as a noun to allow for the later addition of other 
verbs like list and export. I don't propose to change the ticket since 
(a) I don't need it myself and (b) the existing ticket command just 
modifies the metadata for existing tickets and doesn't allow creation of 
tickets or the addition of text to existing tickets.


David
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users