1#!/usr/bin/env vpython3 2 3# Copyright 2023 The Chromium Authors 4# Use of this source code is governed by a BSD-style license that can be 5# found in the LICENSE file. 6"""A standalone tool to resolve a list of packages.""" 7 8# Note, this is a temporary tool and should be removed in favor of a better way 9# to expose the functionality or merge with other use cases of resolve_packages. 10 11import sys 12 13from common import resolve_packages 14 15 16def main(): 17 """Resolve a list of packages on a target.""" 18 if len(sys.argv) < 3: 19 raise ValueError('pkg_resolve.py target [list of packages]') 20 resolve_packages(sys.argv[2:], sys.argv[1]) 21 22 23if __name__ == '__main__': 24 sys.exit(main()) 25