Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Unified Diff: cipd/client/cmd/cipd2isolate/isolate.go

Issue 2746363007: cipd2isolate: Initial CLI parsing boilerplate. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cipd/client/cmd/cipd2isolate/isolate.go
diff --git a/cipd/client/cmd/cipd2isolate/isolate.go b/cipd/client/cmd/cipd2isolate/isolate.go
new file mode 100644
index 0000000000000000000000000000000000000000..106f26f0b1198f29dbcaae98b82ded8a6bf28d4b
--- /dev/null
+++ b/cipd/client/cmd/cipd2isolate/isolate.go
@@ -0,0 +1,23 @@
+// Copyright 2017 The LUCI Authors. All rights reserved.
+// Use of this source code is governed under the Apache License, Version 2.0
+// that can be found in the LICENSE file.
+
+package main
+
+import (
+ "golang.org/x/net/context"
+
+ "github.com/luci/luci-go/cipd/client/cipd"
+ "github.com/luci/luci-go/cipd/client/cipd/ensure"
+ "github.com/luci/luci-go/common/isolatedclient"
+ "github.com/luci/luci-go/common/logging"
+)
+
+// isolateCipdPackages is implementation of cipd2isolate logic.
+//
+// It takes parsed (but not yet resolved) ensure file, preconfigured
+// CIPD and isolated clients, and does all the work.
+func isolateCipdPackages(c context.Context, f *ensure.File, cc cipd.Client, ic *isolatedclient.Client) error {
+ logging.Infof(c, "TODO")
+ return nil
+}

Powered by Google App Engine
This is Rietveld 408576698