Exemplo n.º 1
0
def fmt():
    libbuild.ungroup_go_imports('*.go', 'apis', 'apiserver', 'cloud', 'cmds',
                                'config', 'credential', 'hack', 'inspector',
                                'store', 'utils')
    die(
        call(
            'goimports -w *.go apis apiserver cloud cmds config credential hack/gendocs inspector notification store test utils'
        ))
    call(
        'gofmt -s -w *.go apis apiserver cloud cmds config credential hack/gendocs inspector notification store test utils'
    )
Exemplo n.º 2
0
def fmt():
    libbuild.ungroup_go_imports('apis', 'client', 'pkg', 'hack')
    die(call('goimports -w apis client pkg'))
    call('gofmt -s -w apis client pkg hack/gencrd')
Exemplo n.º 3
0
def fmt():
    libbuild.ungroup_go_imports('pkg', 'cmd')
    die(call('goimports -w pkg cmd'))
    call('gofmt -s -w pkg cmd')
Exemplo n.º 4
0
def fmt():
    libbuild.ungroup_go_imports('cmd', 'pkg')
    die(call('goimports -w cmd pkg'))
    call('gofmt -s -w cmd pkg')
Exemplo n.º 5
0
def fmt():
    libbuild.ungroup_go_imports('pkg', '*.go', 'hack/config')
    die(call('goimports -w *.go pkg hack/config'))
    call('gofmt -s -w *.go pkg hack/config')
Exemplo n.º 6
0
def fmt():
    libbuild.ungroup_go_imports('*.go', 'apis', 'client', 'pkg', 'test', 'third_party')
    die(call('goimports -w *.go apis client pkg test third_party'))
    call('gofmt -s -w *.go apis client pkg test third_party')
Exemplo n.º 7
0
def fmt():
    libbuild.ungroup_go_imports('*.go', 'cloud', 'cmds')
    die(call('goimports -w *.go driver cmds'))
    call('gofmt -s -w *.go driver cmds')
Exemplo n.º 8
0
def fmt():
    libbuild.ungroup_go_imports('cmd', 'data', 'pkg', 'plugins', 'util')
    die(call('goimports -w cmd data pkg plugins util'))
    call('gofmt -s -w cmd data pkg plugins util')