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

Add pycharm, fix detached run, add utils functions #10

Merged
merged 4 commits into from
Feb 25, 2019

Conversation

agamm
Copy link
Owner

@agamm agamm commented Feb 24, 2019

  • Add success print to run_plugin
  • Fix run so it will be run detached
  • add get_dirs_in_dir, read_file and report_issue to comeback.utils
    • get_dirs_in_dir - returns 1st level of dirs in a path
    • read_file - reads a file and closes the fd
    • report_issue - template for errors that need reporting
  • Fix the example dir structure

Adds support for #4
fixes #9

- Fix run so it will be run detached
- add get_dirs_in_dir, read_file and resport_issue to comeback.utils
	- get_dirs_in_dir - returns 1st level of dirs in a path
		- read_file - reads a file and closes the fd
		 	- report_issue - template for errors that need
			  reporting
			  - Fix the example dir structure
@agamm agamm added the enhancement New feature or request label Feb 24, 2019
comeback/main.py Outdated Show resolved Hide resolved
comeback/plugins/pycharm/main.py Outdated Show resolved Hide resolved

def run_plugin(cwd):
platform = utils.get_platform()
if platform == "windows":
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we should Enum the platform?

Copy link
Owner Author

Choose a reason for hiding this comment

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

What do you mean?

Copy link
Collaborator

Choose a reason for hiding this comment

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

To use Platforms.WINDOWS or something instead of strings. (enum)

Copy link
Owner Author

Choose a reason for hiding this comment

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

WIll do

comeback/plugins/pycharm/main.py Outdated Show resolved Hide resolved
comeback/plugins/pycharm/main.py Outdated Show resolved Hide resolved
comeback/plugins/pycharm/main.py Show resolved Hide resolved
comeback/plugins/pycharm/main.py Outdated Show resolved Hide resolved
comeback/utils.py Outdated Show resolved Hide resolved
example/example_agamm/.comeback Outdated Show resolved Hide resolved
comeback/utils.py Outdated Show resolved Hide resolved
@agamm agamm merged commit 518a6a0 into master Feb 25, 2019
@agamm agamm deleted the add-pycharm-fix-detached-add-utils branch February 25, 2019 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a the ability to open a process in a detached terminal (async) in comeback.utils
2 participants