-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cli): rename module name to gdk (#24)
- Loading branch information
1 parent
a154eec
commit 5f06744
Showing
63 changed files
with
373 additions
and
455 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include greengrassTools/static/* | ||
include gdk/static/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
def init(d_args): | ||
import gdk.commands.component.init as init | ||
|
||
init.run(d_args) | ||
|
||
|
||
def build(d_args): | ||
import gdk.commands.component.build as build | ||
|
||
build.run(d_args) | ||
|
||
|
||
def publish(d_args): | ||
import gdk.commands.component.publish as publish | ||
|
||
publish.run(d_args) | ||
|
||
|
||
def list(d_args): | ||
import gdk.commands.component.list as list | ||
|
||
list.run(d_args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
greengrassTools/commands/component/list.py → gdk/commands/component/list.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...ssTools/common/test_integ_build_config.py → ...sts/gdk/common/test_integ_build_config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...sTools/common/test_integ_configuration.py → ...ts/gdk/common/test_integ_configuration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...sTools/common/test_integ_model_actions.py → ...ts/gdk/common/test_integ_model_actions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ngrassTools/components/test_integ_list.py → ...n_tests/gdk/components/test_integ_list.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ls/components/test_integ_project_utils.py → ...dk/components/test_integ_project_utils.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
...s/greengrassTools/test_integ_CLIParser.py → ...gration_tests/gdk/test_integ_CLIParser.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
import greengrassTools.CLIParser as CLIParser | ||
import greengrassTools.common.parse_args_actions as parse_args_actions | ||
import gdk.CLIParser as CLIParser | ||
import gdk.common.parse_args_actions as parse_args_actions | ||
|
||
|
||
def test_main_parse_args_init(mocker): | ||
mock_component_init = mocker.patch("greengrassTools.commands.component.component.init", return_value=None) | ||
mock_component_init = mocker.patch("gdk.commands.component.component.init", return_value=None) | ||
parse_args_actions.run_command(CLIParser.cli_parser.parse_args(["component", "init", "-d"])) | ||
assert mock_component_init.called | ||
|
||
|
||
def test_main_parse_args_case_insenstive_language(mocker): | ||
mocker.patch("greengrassTools.commands.component.component.init", return_value=None) | ||
mocker.patch("gdk.commands.component.component.init", return_value=None) | ||
x = CLIParser.cli_parser.parse_args(["component", "init", "-l", "PYTHON", "-d"]) | ||
assert x.language == "python" | ||
|
||
|
||
def test_main_parse_args_build(mocker): | ||
mock_component_build = mocker.patch("greengrassTools.commands.component.component.build", return_value=None) | ||
mock_component_build = mocker.patch("gdk.commands.component.component.build", return_value=None) | ||
parse_args_actions.run_command(CLIParser.cli_parser.parse_args(["component", "build", "-d"])) | ||
assert mock_component_build.called | ||
|
||
|
||
def test_main_parse_args_publish(mocker): | ||
mock_component_publish = mocker.patch("greengrassTools.commands.component.component.publish", return_value=None) | ||
mock_component_publish = mocker.patch("gdk.commands.component.component.publish", return_value=None) | ||
parse_args_actions.run_command(CLIParser.cli_parser.parse_args(["component", "publish", "-d"])) | ||
assert mock_component_publish.called | ||
|
||
|
||
def test_main_parse_args_list(mocker): | ||
mock_component_list = mocker.patch("greengrassTools.commands.component.component.list", return_value=None) | ||
mock_component_list = mocker.patch("gdk.commands.component.component.list", return_value=None) | ||
args = CLIParser.cli_parser.parse_args(["component", "list", "--template", "-d"]) | ||
parse_args_actions.run_command(args) | ||
assert mock_component_list.called |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.