Skip to content

Commit

Permalink
refine license header
Browse files Browse the repository at this point in the history
  • Loading branch information
leiysky committed Aug 14, 2021
1 parent 46e9cc9 commit 8f2a166
Show file tree
Hide file tree
Showing 666 changed files with 7,982 additions and 1,338 deletions.
6 changes: 0 additions & 6 deletions .licenserc.json

This file was deleted.

14 changes: 12 additions & 2 deletions cli/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

fn main() {
common_building::setup();
Expand Down
14 changes: 12 additions & 2 deletions cli/src/bin/datafuse-cli.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

use datafuse_cli::cmds::Config;
use datafuse_cli::cmds::Processor;
Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/command.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

use dyn_clone::DynClone;

Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/comments/comment.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

use colored::Colorize;

Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/comments/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

pub mod comment;
14 changes: 12 additions & 2 deletions cli/src/cmds/config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

use structopt::StructOpt;

Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/env.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

use colored::Colorize;

Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/helps/help.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

use crate::cmds::command::Command;
use crate::cmds::Writer;
Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/helps/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

pub mod help;
14 changes: 12 additions & 2 deletions cli/src/cmds/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

#[cfg(test)]
mod status_test;
Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/packages/fetch.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

use std::fs;
use std::fs::File;
Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/packages/list.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

use std::fs;

Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/packages/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

pub mod fetch;
pub mod list;
Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/packages/package.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

use std::cell::RefCell;

Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/packages/switch.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

use std::fs;

Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/processor.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

use std::fs;
use std::io::Write;
Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/status.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

use std::fs::File;
use std::fs::OpenOptions;
Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/status_test.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

use tempfile::tempdir;

Expand Down
14 changes: 12 additions & 2 deletions cli/src/cmds/versions/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

pub mod version;
14 changes: 12 additions & 2 deletions cli/src/cmds/versions/version.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
// Copyright 2020-2021 The Datafuse Authors.
// Copyright 2020 Datafuse Labs.
//
// SPDX-License-Identifier: Apache-2.0.
// 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.

use sha2::Digest;
use sha2::Sha256;
Expand Down
Loading

0 comments on commit 8f2a166

Please sign in to comment.