Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
5d1d716e
Commit
5d1d716e
authored
Oct 02, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming.
parent
bc478ac4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
commands.py
hdlmake/action/commands.py
+2
-2
main.py
hdlmake/main.py
+11
-10
No files found.
hdlmake/action/commands.py
View file @
5d1d716e
...
...
@@ -38,12 +38,12 @@ from .action import Action
import
hdlmake.util.shell
as
shell
class
ActionCore
(
Action
):
class
Commands
(
Action
):
"""Class that contains the methods for core actions"""
def
__init__
(
self
,
*
args
):
super
(
ActionCore
,
self
)
.
__init__
(
*
args
)
super
(
Commands
,
self
)
.
__init__
(
*
args
)
self
.
git_backend
=
Git
()
self
.
gitsm_backend
=
GitSM
()
self
.
svn_backend
=
Svn
()
...
...
hdlmake/main.py
View file @
5d1d716e
...
...
@@ -31,7 +31,7 @@ from hdlmake.util import shell
from
hdlmake.util.termcolor
import
colored
from
.manifest_parser.variables
import
ManifestParser
from
.action.commands
import
ActionCore
from
.action.commands
import
Commands
from
._version
import
__version__
...
...
@@ -55,7 +55,7 @@ def hdlmake(args):
set_logging_level
(
options
)
# Create a ModulePool object, this will become our workspace
action
=
ActionCore
(
options
)
action
=
Commands
(
options
)
action
.
load_top_manifest
()
action
.
run
()
...
...
@@ -70,23 +70,23 @@ def hdlmake(args):
quit
(
2
)
def
_action_runner
(
modules_pool
):
def
_action_runner
(
action
):
"""Funtion that decodes and executed the action selected by the user"""
options
=
modules_pool
.
options
options
=
action
.
options
if
options
.
command
==
"manifest-help"
:
ManifestParser
()
.
print_help
()
elif
options
.
command
==
"makefile"
or
options
.
command
is
None
:
modules_pool
.
makefile
()
action
.
makefile
()
elif
options
.
command
==
"fetch"
:
modules_pool
.
fetch
()
action
.
fetch
()
elif
options
.
command
==
"clean"
:
modules_pool
.
clean
()
action
.
clean
()
elif
options
.
command
==
"list-mods"
:
modules_pool
.
list_modules
()
action
.
list_modules
()
elif
options
.
command
==
"list-files"
:
modules_pool
.
list_files
()
action
.
list_files
()
elif
options
.
command
==
"tree"
:
modules_pool
.
generate_tree
()
action
.
generate_tree
()
else
:
raise
AssertionError
...
...
@@ -193,6 +193,7 @@ def _get_parser():
help
=
"display full error log with traceback"
)
return
parser
def
set_logging_level
(
options
):
"""Set the log level and config (A.K.A. log verbosity)"""
numeric_level
=
getattr
(
logging
,
options
.
log
.
upper
(),
None
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment