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

Side by Side Diff: vpython/application/application.go

Issue 2927573002: [vpython] Fix PEP425 naming. (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The LUCI Authors. All rights reserved. 1 // Copyright 2017 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package application 5 package application
6 6
7 import ( 7 import (
8 "flag" 8 "flag"
9 "fmt" 9 "fmt"
10 "io/ioutil" 10 "io/ioutil"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // a generated script is expected to exist longer than this, we will err or. 80 // a generated script is expected to exist longer than this, we will err or.
81 // 81 //
82 // See venv.Config's MaxScriptPathLen. 82 // See venv.Config's MaxScriptPathLen.
83 MaxScriptPathLen int 83 MaxScriptPathLen int
84 84
85 // WithVerificationConfig, if not nil, runs the supplied callback with 85 // WithVerificationConfig, if not nil, runs the supplied callback with
86 // a Config instance to use for verification and the set of default 86 // a Config instance to use for verification and the set of default
87 // verification scenarios. 87 // verification scenarios.
88 // 88 //
89 // If nil, verification will only include the validation of the spec pro tobuf. 89 // If nil, verification will only include the validation of the spec pro tobuf.
90 » WithVerificationConfig func(context.Context, func(Config, []*vpythonAPI. Pep425Tag) error) error 90 » WithVerificationConfig func(context.Context, func(Config, []*vpythonAPI. PEP425Tag) error) error
91 } 91 }
92 92
93 type application struct { 93 type application struct {
94 *Config 94 *Config
95 95
96 // opts is the set of configured options. 96 // opts is the set of configured options.
97 opts vpython.Options 97 opts vpython.Options
98 98
99 help bool 99 help bool
100 devMode bool 100 devMode bool
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 }, 271 },
272 logConfig: logging.Config{ 272 logConfig: logging.Config{
273 Level: logging.Error, 273 Level: logging.Error,
274 }, 274 },
275 } 275 }
276 276
277 return run(c, func(c context.Context) error { 277 return run(c, func(c context.Context) error {
278 return a.mainImpl(c, os.Args[1:]) 278 return a.mainImpl(c, os.Args[1:])
279 }) 279 })
280 } 280 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698