From e552cb0d879f98742c0810ed99380d29b1a58b13 Mon Sep 17 00:00:00 2001 From: 0fatal <2816813070@qq.com> Date: Thu, 21 Dec 2023 08:17:29 +0000 Subject: [PATCH] Add copyright for install command Signed-off-by: 0fatal <2816813070@qq.com> --- cli/command/install/cmd.go | 22 ++++++++++++++++++++ cli/command/install/tool.go | 22 ++++++++++++++++++++ internal/task/task/install/install_tool.go | 24 +++++++++++++++++++++- 3 files changed, 67 insertions(+), 1 deletion(-) diff --git a/cli/command/install/cmd.go b/cli/command/install/cmd.go index 342e4f16b..0a7fa6054 100644 --- a/cli/command/install/cmd.go +++ b/cli/command/install/cmd.go @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2021 NetEase Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* + * Project: CurveAdm + * Created Date: 2023-12-21 + * Author: Xinyu Zhuo (0fatal) + */ + package install import ( diff --git a/cli/command/install/tool.go b/cli/command/install/tool.go index 07b77d5d7..f7a7b528a 100644 --- a/cli/command/install/tool.go +++ b/cli/command/install/tool.go @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2021 NetEase Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* + * Project: CurveAdm + * Created Date: 2023-12-21 + * Author: Xinyu Zhuo (0fatal) + */ + package install import ( diff --git a/internal/task/task/install/install_tool.go b/internal/task/task/install/install_tool.go index 6352c1786..22a7ac93e 100644 --- a/internal/task/task/install/install_tool.go +++ b/internal/task/task/install/install_tool.go @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2021 NetEase Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* + * Project: CurveAdm + * Created Date: 2023-12-21 + * Author: Xinyu Zhuo (0fatal) + */ + package install import ( @@ -52,7 +74,7 @@ func NewInstallToolTask(curveadm *cli.CurveAdm, dc *topology.DeployConfig) (*tas } subname := fmt.Sprintf("host=%s", dc.GetHost()) - t := task.NewTask("Install tool v2", subname, hc.GetSSHConfig()) + t := task.NewTask("Copy version 2 tool to host", subname, hc.GetSSHConfig()) t.AddStep(&step.CreateDirectory{ Paths: []string{filepath.Dir(path)},