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

Pass commandline args to workers #315

Merged
merged 1 commit into from
Mar 3, 2021
Merged

Pass commandline args to workers #315

merged 1 commit into from
Mar 3, 2021

Conversation

soutaro
Copy link
Owner

@soutaro soutaro commented Mar 3, 2021

This allows specifying part of a project through command line arguments to type check.

$ steep check lib/steep/ast lib/steep/cli.rb

@soutaro soutaro enabled auto-merge March 3, 2021 08:20
@@ -40,9 +40,13 @@ def self.spawn_worker(type, name:, steepfile:, options: [], delay_shutdown: fals
new(reader: reader, writer: writer, stderr: stderr, wait_thread: thread, name: name)
end

def self.spawn_typecheck_workers(steepfile:, count: [Etc.nprocessors - 1, 1].max, delay_shutdown: false)
def self.spawn_typecheck_workers(steepfile:, args:, count: [Etc.nprocessors - 1, 1].max, delay_shutdown: false)
Copy link
Owner Author

Choose a reason for hiding this comment

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

The command-line arguments forwarding from the master process to worker processes are done with command-line arguments.

@soutaro soutaro merged commit 1acb07d into master Mar 3, 2021
@soutaro soutaro deleted the check-commandline-args branch March 3, 2021 08:25
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.

1 participant