Skip to content

modify pg_cmd.py to make shell system call#88

Merged
zaihuaji merged 1 commit intomainfrom
hua-work-common
Mar 13, 2026
Merged

modify pg_cmd.py to make shell system call#88
zaihuaji merged 1 commit intomainfrom
hua-work-common

Conversation

@zaihuaji
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings March 13, 2026 19:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Python PgCMD implementation to run the dynamic-options command via a shell-enabled pgsystem() call, and bumps the package version accordingly.

Changes:

  • Force pg_cmd.PgCMD.get_dynamic_options() to call pgsystem() with cmdopt 1024 (shell mode) and adjust the cmdopt bitmask.
  • Bump project version from 2.0.19 to 2.0.20.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/rda_python_common/pg_cmd.py Changes pgsystem() cmdopt flags used for dynamic option retrieval (enables shell mode, alters logging behavior).
pyproject.toml Increments package version to 2.0.20.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

ret = options = ''
for loop in range(3):
ret = self.pgsystem(cmd, self.LOGWRN, 279) # 1+2+4+16+256
ret = self.pgsystem(cmd, self.LOGWRN, 1299) # 1+2+16+256+1024
ret = options = ''
for loop in range(3):
ret = self.pgsystem(cmd, self.LOGWRN, 279) # 1+2+4+16+256
ret = self.pgsystem(cmd, self.LOGWRN, 1299) # 1+2+16+256+1024
@zaihuaji zaihuaji merged commit 54a08b8 into main Mar 13, 2026
5 checks passed
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.

2 participants