Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

11 interactive mode dev #12

Merged
merged 5 commits into from
Nov 7, 2024
Merged

11 interactive mode dev #12

merged 5 commits into from
Nov 7, 2024

Conversation

elkanamol
Copy link
Owner

adding a new feature to support interactive mode to send by user AT command and save to log file.
The code is used with the existing design and added the relevant functions to support it in both usb_handle.py and cli.py.
adding test methods to cover additional methods and functionality.
the new version test on WIndows and Linux.
image
close issue #11

Add -i/--interactive flag to enable users to send custom AT commands in interactive mode.
This enhances the CLI flexibility by allowing direct AT command input during runtime.
Add new functionality to support interactive AT command sessions:
- Implement get_interactive_command() for user input validation
- Add handle_interactive_session() to manage interactive command flow
- Update start_process() to support both batch and interactive modes
- Add interactive flag parameter to control execution mode

This enhancement allows users to manually enter and execute AT commands
in an interactive session while maintaining the existing batch mode functionality.
Add comprehensive test suite for interactive AT command mode including:
- Test cases for get_interactive_command() with valid/invalid inputs
- Coverage for handle_interactive_session() with command sequences
- Tests for start_process() in both interactive and standard modes
- Validation of command processing and status file creation

This enhances test coverage for the interactive CLI features and ensures
proper handling of user input scenarios.
- Pass interactive flag to core function in cli.py
- Bump version from 0.1.4 to 0.1.5
@elkanamol elkanamol self-assigned this Nov 7, 2024
@elkanamol elkanamol linked an issue Nov 7, 2024 that may be closed by this pull request
- Add consistent trailing commas in function parameters
- Fix string quote style in test files (single -> double quotes)
- Improve readability of long function calls by breaking into multiple lines
- Format CLI argument definitions consistently
- Clean up whitespace in docstrings and function signatures

The changes focus on code style consistency across the codebase,
particularly in sierra_status/src and tests directories.
@elkanamol elkanamol merged commit d2009ab into main Nov 7, 2024
1 check passed
@elkanamol elkanamol deleted the 11-interactive-mode-dev branch November 7, 2024 09:44
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.

Interactive mode to enable send custom or user AT commands.
1 participant