summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/bench/deno_tcp.ts1
-rw-r--r--cli/bench/deno_tcp_proxy.ts1
-rw-r--r--cli/bench/node_tcp_proxy.js1
-rw-r--r--cli/checksum.rs2
-rw-r--r--cli/disk_cache.rs2
-rw-r--r--cli/file_watcher.rs2
-rw-r--r--cli/flags_allow_net.rs2
-rw-r--r--cli/import_map.rs2
-rw-r--r--cli/info.rs2
-rw-r--r--cli/lockfile.rs2
-rw-r--r--cli/ops/io.rs2
-rw-r--r--cli/ops/net_unix.rs2
-rw-r--r--cli/rt/99_main.js1
-rw-r--r--cli/web_worker.rs1
14 files changed, 23 insertions, 0 deletions
diff --git a/cli/bench/deno_tcp.ts b/cli/bench/deno_tcp.ts
index a204e7bfb..09a21ee7e 100644
--- a/cli/bench/deno_tcp.ts
+++ b/cli/bench/deno_tcp.ts
@@ -1,3 +1,4 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// Used for benchmarking Deno's networking.
// TODO Replace this with a real HTTP server once
// https://github.com/denoland/deno/issues/726 is completed.
diff --git a/cli/bench/deno_tcp_proxy.ts b/cli/bench/deno_tcp_proxy.ts
index db693b690..d59c7d9e1 100644
--- a/cli/bench/deno_tcp_proxy.ts
+++ b/cli/bench/deno_tcp_proxy.ts
@@ -1,3 +1,4 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// Used for benchmarking Deno's tcp proxy performance.
const addr = Deno.args[0] || "127.0.0.1:4500";
const originAddr = Deno.args[1] || "127.0.0.1:4501";
diff --git a/cli/bench/node_tcp_proxy.js b/cli/bench/node_tcp_proxy.js
index d693dc5c8..5f2c208b8 100644
--- a/cli/bench/node_tcp_proxy.js
+++ b/cli/bench/node_tcp_proxy.js
@@ -1,3 +1,4 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
const net = require("net");
process.on("uncaughtException", function (error) {
diff --git a/cli/checksum.rs b/cli/checksum.rs
index 69d35ea4c..41e15db2f 100644
--- a/cli/checksum.rs
+++ b/cli/checksum.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+
pub fn gen(v: &[&[u8]]) -> String {
let mut ctx = ring::digest::Context::new(&ring::digest::SHA256);
for src in v {
diff --git a/cli/disk_cache.rs b/cli/disk_cache.rs
index cb27a6a50..808a1c9b7 100644
--- a/cli/disk_cache.rs
+++ b/cli/disk_cache.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+
use crate::fs as deno_fs;
use crate::http_cache::url_to_filename;
use deno_core::url::{Host, Url};
diff --git a/cli/file_watcher.rs b/cli/file_watcher.rs
index b9c18c17f..dfcf05e27 100644
--- a/cli/file_watcher.rs
+++ b/cli/file_watcher.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+
use crate::colors;
use deno_core::error::AnyError;
use futures::stream::StreamExt;
diff --git a/cli/flags_allow_net.rs b/cli/flags_allow_net.rs
index 19e3c1e0f..83038ac4d 100644
--- a/cli/flags_allow_net.rs
+++ b/cli/flags_allow_net.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+
use deno_core::url::Url;
use std::net::IpAddr;
use std::str::FromStr;
diff --git a/cli/import_map.rs b/cli/import_map.rs
index ee481b6f7..7fb769955 100644
--- a/cli/import_map.rs
+++ b/cli/import_map.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+
use deno_core::error::AnyError;
use deno_core::url::Url;
use deno_core::ModuleSpecifier;
diff --git a/cli/info.rs b/cli/info.rs
index 62ec5c16e..45d6127fc 100644
--- a/cli/info.rs
+++ b/cli/info.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+
use crate::colors;
use crate::global_state::GlobalState;
use crate::module_graph::{ModuleGraph, ModuleGraphFile, ModuleGraphLoader};
diff --git a/cli/lockfile.rs b/cli/lockfile.rs
index 4ac893030..fcc15892b 100644
--- a/cli/lockfile.rs
+++ b/cli/lockfile.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+
use serde_json::json;
use std::collections::BTreeMap;
use std::io::Result;
diff --git a/cli/ops/io.rs b/cli/ops/io.rs
index 0992f768b..d481e8211 100644
--- a/cli/ops/io.rs
+++ b/cli/ops/io.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+
use super::dispatch_minimal::minimal_op;
use super::dispatch_minimal::MinimalOp;
use crate::http_util::HttpBody;
diff --git a/cli/ops/net_unix.rs b/cli/ops/net_unix.rs
index cf4470f13..a54c53630 100644
--- a/cli/ops/net_unix.rs
+++ b/cli/ops/net_unix.rs
@@ -1,3 +1,5 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+
use crate::ops::io::StreamResource;
use crate::ops::io::StreamResourceHolder;
use crate::ops::net::AcceptArgs;
diff --git a/cli/rt/99_main.js b/cli/rt/99_main.js
index 40ea8434b..26e8fd6da 100644
--- a/cli/rt/99_main.js
+++ b/cli/rt/99_main.js
@@ -1,3 +1,4 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// Removes the `__proto__` for security reasons. This intentionally makes
// Deno non compliant with ECMA-262 Annex B.2.2.1
//
diff --git a/cli/web_worker.rs b/cli/web_worker.rs
index 75704d924..ab021a93d 100644
--- a/cli/web_worker.rs
+++ b/cli/web_worker.rs
@@ -1,4 +1,5 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+
use crate::global_state::GlobalState;
use crate::js;
use crate::ops;