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

Initial Commit Help Pages #48

Merged
merged 6 commits into from
May 16, 2024
Merged

Initial Commit Help Pages #48

merged 6 commits into from
May 16, 2024

Conversation

DimitriTernovoj
Copy link
Collaborator

One can now run:
nextflow run eval.nf --help or nextflow run hap.nf --help,
to see a help page with minimal usage examples and parameter explanations.

Issue: #39

@Krannich479 Krannich479 added documentation Improvements or additions to documentation enhancement New feature or request labels May 8, 2024
@Krannich479 Krannich479 added this to the v.0.3.0 milestone May 8, 2024
@Krannich479 Krannich479 self-requested a review May 14, 2024 10:40
@Krannich479
Copy link
Collaborator

I'll look over the actual helppage content later

eval.nf Outdated
@@ -1,3 +1,10 @@
//load in help function
File data_class_file = new File("./src/data_class.groovy");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please rename that file into something like Helppages.groovy? This describes the purpose of the class more intuitively.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Same for the variable's name data_class_file -> helppages_class_file

eval.nf Outdated
@@ -1,3 +1,10 @@
//load in help function
File data_class_file = new File("./src/data_class.groovy");
Class groovyClass = new GroovyClassLoader(getClass().getClassLoader()).parseClass(data_class_file);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same: groovyClass -> HelppagesClass

eval.nf Outdated
//load in help function
File data_class_file = new File("./src/data_class.groovy");
Class groovyClass = new GroovyClassLoader(getClass().getClassLoader()).parseClass(data_class_file);
GroovyObject data_class = (GroovyObject) groovyClass.newInstance();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same: data_class -> help

eval.nf Outdated
Class groovyClass = new GroovyClassLoader(getClass().getClassLoader()).parseClass(data_class_file);
GroovyObject data_class = (GroovyObject) groovyClass.newInstance();

if (params.help) { exit 0, data_class.helpEval(workflow.manifest.version) }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Needs then adjustment to new name

hap.nf Outdated
@@ -1,3 +1,10 @@
//load in help function
File data_class_file = new File("./src/data_class.groovy");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as in eval.nf

Copy link
Collaborator

@Krannich479 Krannich479 left a comment

Choose a reason for hiding this comment

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

Tested as functional 🚀

@Krannich479 Krannich479 merged commit 79bc341 into dev May 16, 2024
2 checks passed
@Krannich479 Krannich479 deleted the feature_help_pages branch May 16, 2024 11:08
@Krannich479 Krannich479 mentioned this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants