This is an automated email from the ASF dual-hosted git repository.

warren pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 32d67d84 chore: add comment for DirectRun function
32d67d84 is described below

commit 32d67d849ea6cc85950d0631f8eefbdc8a455461
Author: fatelei <[email protected]>
AuthorDate: Thu May 19 22:01:28 2022 +0800

    chore: add comment for DirectRun function
---
 runner/directrun.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/runner/directrun.go b/runner/directrun.go
index fecf449f..0d43a17a 100644
--- a/runner/directrun.go
+++ b/runner/directrun.go
@@ -19,6 +19,11 @@ func RunCmd(cmd *cobra.Command) {
        }
 }
 
+// DirectRun direct run plugin from command line.
+// cmd: type is cobra.Command
+// args: command line arguments
+// pluginTask: specific built-in plugin, for example: feishu, jira...
+// options: plugin config
 func DirectRun(cmd *cobra.Command, args []string, pluginTask core.PluginTask, 
options map[string]interface{}) {
        tasks, err := cmd.Flags().GetStringSlice("tasks")
        if err != nil {

Reply via email to