Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Johan Runsten 38 posts 276 karma points c-trib
    Jan 26, 2023 @ 10:23
    Johan Runsten
    0

    Add custom commands to CommandLine/Triggers

    Hi,

    It would be helpful to be able to add custom commands to either CommandLine or Triggers (not sure on the difference here) so that we can leverage the authentication protocol when performing remote commands. My use case is to (automatically) download the exported files after triggering a remote export. The solution now is to expose an endpoint on the remote server.

  • Kevin Jump 2311 posts 14697 karma points MVP 7x c-trib
    Jan 26, 2023 @ 13:18
    Kevin Jump
    100

    Yes,

    If you implement something that inherits from SyncCommandBase (Which implements ISyncCommand) the the command side will pick it up and you will be able to see if from the command line.

    Examples in the core do things like rebuild indexes, return version numbers

    https://github.com/Jumoo/uSync.CommandLine/tree/v11%2Fmain/uSync.Commands.Server%2FCommands

  • Johan Runsten 38 posts 276 karma points c-trib
    Jan 26, 2023 @ 13:31
    Johan Runsten
    0

    Great thanks will check it out!

Please Sign in or register to post replies

Write your reply to:

Draft