Skip to content

Commit

Permalink
all: update copyright headers (#4)
Browse files Browse the repository at this point in the history
* update readme

* remove personal copyright

* all: update copyright headers

to keep consistent with the description in the CONTRIBUTING.md file of the trpc repository

https://github.com/trpc-group/trpc/blob/main/CONTRIBUTING.md#copyright-headers
  • Loading branch information
liuzengh authored Oct 16, 2023
1 parent 22b3e2f commit d26bf18
Show file tree
Hide file tree
Showing 186 changed files with 1,681 additions and 26 deletions.
15 changes: 11 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,18 @@ Instead, your name will appear in the change log.
New files that you contribute should use the standard copyright header:

```go
// Tencent is pleased to support the open source community by making trpc-cmdline available.
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
//
//
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that trpc-cmdline source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License can be found in the LICENSE file.
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.
//
//
```

Files in the repository are copyrighted the year they are added.
Expand Down
15 changes: 11 additions & 4 deletions CONTRIBUTING.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,18 @@ trpc-cmdline 代码仓库中的文件不列出作者姓名,以避免混乱并

您贡献的新文件应使用标准版权声明:
```go
// Tencent is pleased to support the open source community by making trpc-cmdline available.
// Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved.
//
//
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that trpc-cmdline source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License can be found in the LICENSE file.
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.
//
//
```

代码仓库中的文件在添加时受版权保护。
Expand Down
9 changes: 9 additions & 0 deletions bindata/bindata.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package main

import (
Expand Down
9 changes: 9 additions & 0 deletions bindata/bindata_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package main

import (
Expand Down
9 changes: 9 additions & 0 deletions bindata/compress/tar.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package compress

import (
Expand Down
9 changes: 9 additions & 0 deletions bindata/compress/tar_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package compress

import (
Expand Down
9 changes: 9 additions & 0 deletions cmd/apidocs/apidocs.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

// Package apidocs provides apidocs command.
package apidocs

Expand Down
9 changes: 9 additions & 0 deletions cmd/apidocs/apidocs_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package apidocs

import (
Expand Down
9 changes: 9 additions & 0 deletions cmd/completion/completion.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

// Package completion provides completion command.
package completion

Expand Down
17 changes: 13 additions & 4 deletions cmd/completion/completion_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package completion

import (
Expand All @@ -14,23 +23,23 @@ func TestCmd_Completion(t *testing.T) {
output, err := internal.RunAndWatch(completionCmd, nil, []string{"bash"})
require.Nil(t, err)
require.NotEmpty(t, output)
//t.Logf("generated bash completion script: \n%s", output)
// t.Logf("generated bash completion script: \n%s", output)

// zsh
output, err = internal.RunAndWatch(completionCmd, nil, []string{"zsh"})
require.Nil(t, err)
require.NotEmpty(t, output)
//t.Logf("generated zsh completion script: \n%s", output)
// t.Logf("generated zsh completion script: \n%s", output)

// fish
output, err = internal.RunAndWatch(completionCmd, nil, []string{"fish"})
require.Nil(t, err)
require.NotEmpty(t, output)
//t.Logf("generated fish completion script: \n%s", output)
// t.Logf("generated fish completion script: \n%s", output)

// powershell
output, err = internal.RunAndWatch(completionCmd, nil, []string{"powershell"})
require.Nil(t, err)
require.NotEmpty(t, output)
//t.Logf("generated powershell completion script: \n%s", output)
// t.Logf("generated powershell completion script: \n%s", output)
}
9 changes: 9 additions & 0 deletions cmd/create/cmdflags.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package create

import "github.com/spf13/cobra"
Expand Down
9 changes: 9 additions & 0 deletions cmd/create/create.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

// Package create provides create command.
package create

Expand Down
9 changes: 9 additions & 0 deletions cmd/create/create_idl_fbs_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package create

import (
Expand Down
9 changes: 9 additions & 0 deletions cmd/create/create_idl_non_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package create

import (
Expand Down
9 changes: 9 additions & 0 deletions cmd/create/create_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package create

import (
Expand Down
9 changes: 9 additions & 0 deletions cmd/create/generate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package create

import (
Expand Down
9 changes: 9 additions & 0 deletions cmd/create/options.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package create

import (
Expand Down
9 changes: 9 additions & 0 deletions cmd/create/post.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package create

import (
Expand Down
9 changes: 9 additions & 0 deletions cmd/create/rpcstub.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package create

import (
Expand Down
9 changes: 9 additions & 0 deletions cmd/internal/test_helper.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

// Package internal provides internal utilities for command to use.
package internal

Expand Down
9 changes: 9 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

// Package cmd provides commands to help developer generating project, testing, etc.
package cmd

Expand Down
9 changes: 9 additions & 0 deletions cmd/setup/setup.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

// Package setup provides setup command.
package setup

Expand Down
9 changes: 9 additions & 0 deletions cmd/version/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

// Package version provides version command.
package version

Expand Down
9 changes: 9 additions & 0 deletions cmd/version/version_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package version

import (
Expand Down
9 changes: 9 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

// Package config provides configuration-related capabilities for this project.
package config

Expand Down
9 changes: 9 additions & 0 deletions config/config_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package config

import (
Expand Down
9 changes: 9 additions & 0 deletions config/def.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Tencent is pleased to support the open source community by making tRPC available.
//
// Copyright (C) 2023 THL A29 Limited, a Tencent company.
// All rights reserved.
//
// If you have downloaded a copy of the tRPC source code from Tencent,
// please note that tRPC source code is licensed under the Apache 2.0 License,
// A copy of the Apache 2.0 License is included in this file.

package config

import (
Expand Down
Loading

0 comments on commit d26bf18

Please sign in to comment.