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

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

Issue 2927573002: [vpython] Fix PEP425 naming. (Closed)
Patch Set: rebase and update 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
« no previous file with comments | « vpython/api/vpython/util.go ('k') | vpython/application/subcommand_verify.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // a generated script is expected to exist longer than this, we will err or. 95 // a generated script is expected to exist longer than this, we will err or.
96 // 96 //
97 // See venv.Config's MaxScriptPathLen. 97 // See venv.Config's MaxScriptPathLen.
98 MaxScriptPathLen int 98 MaxScriptPathLen int
99 99
100 // WithVerificationConfig, if not nil, runs the supplied callback with 100 // WithVerificationConfig, if not nil, runs the supplied callback with
101 // a Config instance to use for verification and the set of default 101 // a Config instance to use for verification and the set of default
102 // verification scenarios. 102 // verification scenarios.
103 // 103 //
104 // If nil, verification will only include the validation of the spec pro tobuf. 104 // If nil, verification will only include the validation of the spec pro tobuf.
105 » WithVerificationConfig func(context.Context, func(Config, []*vpythonAPI. Pep425Tag) error) error 105 » WithVerificationConfig func(context.Context, func(Config, []*vpythonAPI. PEP425Tag) error) error
106 } 106 }
107 107
108 type application struct { 108 type application struct {
109 *Config 109 *Config
110 110
111 // opts is the set of configured options. 111 // opts is the set of configured options.
112 opts vpython.Options 112 opts vpython.Options
113 113
114 help bool 114 help bool
115 devMode bool 115 devMode bool
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 }, 312 },
313 logConfig: logging.Config{ 313 logConfig: logging.Config{
314 Level: logging.Error, 314 Level: logging.Error,
315 }, 315 },
316 } 316 }
317 317
318 return run(c, func(c context.Context) error { 318 return run(c, func(c context.Context) error {
319 return a.mainImpl(c, os.Args[0], os.Args[1:]) 319 return a.mainImpl(c, os.Args[0], os.Args[1:])
320 }) 320 })
321 } 321 }
OLDNEW
« no previous file with comments | « vpython/api/vpython/util.go ('k') | vpython/application/subcommand_verify.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698