Suggestion: Command line shell/interactive mode

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
Thomas Linder Puls
Posts: 153
Joined: Tue Jan 20, 2004 2:28 am
Location: PDC, Copenhagen Denmark
Contact:

Suggestion: Command line shell/interactive mode

Post by Thomas Linder Puls » Tue Jan 27, 2015 5:48 am

It would be very nice if the command line program (vault.exe) supported a "shell"/interactive mode:
  • You start like batch mode (providing host, repository, user and password directly on the command line), but
  • Each command will have its own output (flushed after that command)
  • An error will not leave shell/interactive mode
  • Instead there is some "exit" command to leave the program again
If it is a problem to find resources I can update the program for you (it is quite easy); the important thing is that this automatically becomes available in future versions (and for my colleagues).
Thomas Linder Puls
Visual Prolog www.visual-prolog.com

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Suggestion: Command line shell/interactive mode

Post by Beth » Tue Jan 27, 2015 10:45 am

I've logged a feature request for a CLC shell/interactive mode.

In the meantime, you can access the CLC code. We have it enclosed in the Vault client API. Just go to the downloads page for the version you are using and download the API. Documentation is in the download, and common questions/examples can be found here: http://support.sourcegear.com/viewforum.php?f=39.



F: 18068
Beth Kieler
SourceGear Technical Support

Thomas Linder Puls
Posts: 153
Joined: Tue Jan 20, 2004 2:28 am
Location: PDC, Copenhagen Denmark
Contact:

Re: Suggestion: Command line shell/interactive mode

Post by Thomas Linder Puls » Wed Jan 28, 2015 4:21 am

Thank you.

I know that the CLC code is available, and as I wrote above, I am willing to make the update.

The important thing for me is not to have to remake it each time we upgrade.
Thomas Linder Puls
Visual Prolog www.visual-prolog.com

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Suggestion: Command line shell/interactive mode

Post by Beth » Wed Jan 28, 2015 12:19 pm

I think with each upgrade you'd have to just compile it again using the latest API. The API doesn't change often, so you wouldn't have to recode everything.
Beth Kieler
SourceGear Technical Support

Thomas Linder Puls
Posts: 153
Joined: Tue Jan 20, 2004 2:28 am
Location: PDC, Copenhagen Denmark
Contact:

Re: Suggestion: Command line shell/interactive mode

Post by Thomas Linder Puls » Thu Jan 29, 2015 4:03 am

Well, today we actually have a COM component based on your CLC, so we know what we need to do.

Merging changes and recompiling the program is a rather little part of the process. We also have to create an installation program which must be distributed to my colleagues who will have to install it on their computers. The task is doable, but it would be so much nicer if we didn't have to do it.

Anyway, you have still not answered whether you would like me to do the update of the CLC code for you?
Thomas Linder Puls
Visual Prolog www.visual-prolog.com

Post Reply