Skip to content

Commit 0a65671

Browse files
committed
Add copyright for install command
Signed-off-by: 0fatal <[email protected]>
1 parent a52be8a commit 0a65671

File tree

3 files changed

+67
-1
lines changed

3 files changed

+67
-1
lines changed

cli/command/install/cmd.go

+22
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
* Copyright (c) 2023 NetEase Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/*
18+
* Project: CurveAdm
19+
* Created Date: 2023-12-21
20+
* Author: Xinyu Zhuo (0fatal)
21+
*/
22+
123
package install
224

325
import (

cli/command/install/tool.go

+22
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
* Copyright (c) 2023 NetEase Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/*
18+
* Project: CurveAdm
19+
* Created Date: 2023-12-21
20+
* Author: Xinyu Zhuo (0fatal)
21+
*/
22+
123
package install
224

325
import (

internal/task/task/install/install_tool.go

+23-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
* Copyright (c) 2023 NetEase Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/*
18+
* Project: CurveAdm
19+
* Created Date: 2023-12-21
20+
* Author: Xinyu Zhuo (0fatal)
21+
*/
22+
123
package install
224

325
import (
@@ -52,7 +74,7 @@ func NewInstallToolTask(curveadm *cli.CurveAdm, dc *topology.DeployConfig) (*tas
5274
}
5375

5476
subname := fmt.Sprintf("host=%s", dc.GetHost())
55-
t := task.NewTask("Install tool v2", subname, hc.GetSSHConfig())
77+
t := task.NewTask("Copy version 2 tool to host", subname, hc.GetSSHConfig())
5678

5779
t.AddStep(&step.CreateDirectory{
5880
Paths: []string{filepath.Dir(path)},

0 commit comments

Comments
 (0)