Skip to content

Conversation

@bogdant36
Copy link
Collaborator

…led execution output. Added message that leads to log file with detailed output after exception happened.

…led execution output. Added message that leads to log file with detailed output after exception happened.
Bogdan Tintor added 2 commits August 16, 2024 14:39
# Conflicts:
#	coretex/cli/commands/node.py
#	coretex/cli/modules/intercept.py
#	coretex/cli/modules/node.py
#	coretex/cli/modules/utils.py
#	coretex/utils/docker.py
pass

# if ctx.params.get('verbose'):
# VERBOSE = True
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this comment be removed?

if param["name"] == "verbose" and param["flag_value"] == True:
CLISettings.verbose = True
except:
pass
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set verbose to false here



def shouldUpdate(image: str) -> bool:
def shouldUpdate(image: str, ) -> bool:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comma

logFiles = list(logPath.glob("*.log"))
latestLogFile = max(logFiles, key = lambda f: f.stat().st_mtime)

errorEcho(f"Exception: {str(exc)}.\nYou can see detailed logs here: {latestLogFile}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An error occured. You can see the detailed logs at {filepath}

@click.option("--verbose", "verbose", is_flag = True, help = "Shows detailed output of command execution.")
@onBeforeCommandExecute(node_module.initializeNodeConfiguration)
def update(autoAccept: bool, autoDecline: bool) -> None:
def update(autoAccept: bool, autoDecline: bool, verbose: bool = False) -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to have verbose defined explicitly?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@click.option("--verbose", "verbose", is_flag = True, help = "Shows detailed output of command execution.")
@onBeforeCommandExecute(node_module.initializeNodeConfiguration)
def start(image: Optional[str]) -> None:
def start(image: Optional[str], verbose: bool = False) -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to have verbose defined explicitly?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

…click.group and click.command decorator with slight changes that serve our needs. onBeforeCommandExecute callback is deleted all functionality is now in base_group and base_command. Minor code cleanup in scope of this task (unused imports etc.)
…true since they change the output of the command and json cant be loaded no more.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants