File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #
2+ # Copyright (c) nexB Inc. and others. All rights reserved.
3+ # FederatedCode is a trademark of nexB Inc.
4+ # SPDX-License-Identifier: Apache-2.0
5+ # See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
6+ # See https://github.com/nexB/federatedcode for support or download.
7+ # See https://aboutcode.org for more information about AboutCode.org OSS projects.
8+ #
9+
10+ import os
11+ import sys
12+
13+ __version__ = "0.1.0"
14+
15+
16+ def command_line ():
17+ """Command line entry point."""
18+ from django .core .management import execute_from_command_line
19+
20+ os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "federatedcode.settings" )
21+ execute_from_command_line (sys .argv )
Original file line number Diff line number Diff line change @@ -105,6 +105,10 @@ docs =
105105 sphinxcontrib_django
106106 sphinx-jsonschema
107107
108+ [options.entry_points]
109+ console_scripts =
110+ fedcode = federatedcode:command_line
111+
108112[isort]
109113force_single_line = True
110114line_length = 88
You can’t perform that action at this time.
0 commit comments