Files
Brian Smith d87492d54e Create autopkgcmd module to house subcommands
The main `autopkg` module is quite substantial in size. This makes it                                                                                                          harder to learn how the tool fits together. It also impacts confidence
that changes have not broken or introduced implicit coupling, increases
code duplication, makes code review more challenging, and complicates                                                                                                          incrementally adding typing.

In support of moving the `search` command to a dedicated module, a few
utility functions for github access have been consolidated, and a case
of duplicated github search queries has been consolidated. The logic for
initializing or fetching a github token has been refactored to reduce
code duplication as well. Lastly, more type annotations have been added.
as well. More typing was added.
2020-06-24 18:44:52 -07:00

19 lines
750 B
Python

#!/usr/local/autopkg/python
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from autopkgcmd.opts import common_parse, gen_common_parser
from autopkgcmd.searchcmd import search_recipes
__all__ = ["search_recipes", "gen_common_parser", "common_parse"]