Skip to content

Conversation

@feuGeneA
Copy link
Contributor

Before this change, the hardhat help printer was including these tasks as top-level tasks rather than excluding them from the output like sub-tasks get excluded:

$ yarn hardhat
yarn run v1.22.11
$ /home/gene/dev/geneAum/hardhat-empty/node_modules/.bin/hardhat
183902c7-780d-45b2-8153-d82bdca11490
Hardhat version 2.5.0

Usage: hardhat [GLOBAL OPTIONS] <TASK> [TASK OPTIONS]

GLOBAL OPTIONS:

  --config           	A Hardhat config file. 
  --emoji            	Use emoji in messages. 
  --help             	Shows this message, or a task's help if its name is provided 
  --max-memory       	The maximum amount of memory that Hardhat can use. 
  --network          	The network to connect to. 
  --show-stack-traces	Show stack traces. 
  --tsconfig         	Reserved hardhat argument -- Has no effect. 
  --verbose          	Enables Hardhat verbose logging 
  --version          	Shows hardhat's version. 


AVAILABLE TASKS:

  accounts                                     	Prints the list of accounts
  check                                        	Check whatever you need
  clean                                        	Clears the cache and deletes all artifacts
  compile                                      	Compiles the entire project, building all artifacts
  compile:solidity:get-compilation-job-for-file	
  compile:solidity:get-compiler-input          	
  console                                      	Opens a hardhat console
  coverage                                     	Generates a code coverage report for tests
  flatten                                      	Flattens and prints contracts and their dependencies
  help                                         	Prints this message
  node                                         	Starts a JSON-RPC server on top of Hardhat Network
  run                                          	Runs a user-defined script after compiling the project
  test                                         	Runs mocha tests
  typechain                                    	Generate Typechain typings for compiled contracts
  verify                                       	Verifies contract on Etherscan

To get help for a specific task run: npx hardhat help [task]

Done in 2.82s.

After these changes, these sub-tasks are being hidden properly:

$ yarn hardhat
yarn run v1.22.11
$ /home/gene/dev/geneAum/hardhat-empty/node_modules/.bin/hardhat
183902c7-780d-45b2-8153-d82bdca11490
Hardhat version 2.5.0

Usage: hardhat [GLOBAL OPTIONS] <TASK> [TASK OPTIONS]

GLOBAL OPTIONS:

  --config           	A Hardhat config file. 
  --emoji            	Use emoji in messages. 
  --help             	Shows this message, or a task's help if its name is provided 
  --max-memory       	The maximum amount of memory that Hardhat can use. 
  --network          	The network to connect to. 
  --show-stack-traces	Show stack traces. 
  --tsconfig         	Reserved hardhat argument -- Has no effect. 
  --verbose          	Enables Hardhat verbose logging 
  --version          	Shows hardhat's version. 


AVAILABLE TASKS:

  accounts 	Prints the list of accounts
  check    	Check whatever you need
  clean    	Clears the cache and deletes all artifacts
  compile  	Compiles the entire project, building all artifacts
  console  	Opens a hardhat console
  coverage 	Generates a code coverage report for tests
  flatten  	Flattens and prints contracts and their dependencies
  help     	Prints this message
  node     	Starts a JSON-RPC server on top of Hardhat Network
  run      	Runs a user-defined script after compiling the project
  test     	Runs mocha tests
  typechain	Generate Typechain typings for compiled contracts
  verify   	Verifies contract on Etherscan

To get help for a specific task run: npx hardhat help [task]

Done in 2.77s.

Before this change, the hardhat help printer was including these tasks as top-level tasks rather than excluding them from the output like sub-tasks get excluded:

```
$ yarn hardhat
yarn run v1.22.11
$ /home/gene/dev/geneAum/hardhat-empty/node_modules/.bin/hardhat
183902c7-780d-45b2-8153-d82bdca11490
Hardhat version 2.5.0

Usage: hardhat [GLOBAL OPTIONS] <TASK> [TASK OPTIONS]

GLOBAL OPTIONS:

  --config           	A Hardhat config file. 
  --emoji            	Use emoji in messages. 
  --help             	Shows this message, or a task's help if its name is provided 
  --max-memory       	The maximum amount of memory that Hardhat can use. 
  --network          	The network to connect to. 
  --show-stack-traces	Show stack traces. 
  --tsconfig         	Reserved hardhat argument -- Has no effect. 
  --verbose          	Enables Hardhat verbose logging 
  --version          	Shows hardhat's version. 


AVAILABLE TASKS:

  accounts                                     	Prints the list of accounts
  check                                        	Check whatever you need
  clean                                        	Clears the cache and deletes all artifacts
  compile                                      	Compiles the entire project, building all artifacts
  compile:solidity:get-compilation-job-for-file	
  compile:solidity:get-compiler-input          	
  console                                      	Opens a hardhat console
  coverage                                     	Generates a code coverage report for tests
  flatten                                      	Flattens and prints contracts and their dependencies
  help                                         	Prints this message
  node                                         	Starts a JSON-RPC server on top of Hardhat Network
  run                                          	Runs a user-defined script after compiling the project
  test                                         	Runs mocha tests
  typechain                                    	Generate Typechain typings for compiled contracts
  verify                                       	Verifies contract on Etherscan

To get help for a specific task run: npx hardhat help [task]

Done in 2.82s.
```

After these changes, these sub-tasks are being hidden properly:

```
$ yarn hardhat
yarn run v1.22.11
$ /home/gene/dev/geneAum/hardhat-empty/node_modules/.bin/hardhat
183902c7-780d-45b2-8153-d82bdca11490
Hardhat version 2.5.0

Usage: hardhat [GLOBAL OPTIONS] <TASK> [TASK OPTIONS]

GLOBAL OPTIONS:

  --config           	A Hardhat config file. 
  --emoji            	Use emoji in messages. 
  --help             	Shows this message, or a task's help if its name is provided 
  --max-memory       	The maximum amount of memory that Hardhat can use. 
  --network          	The network to connect to. 
  --show-stack-traces	Show stack traces. 
  --tsconfig         	Reserved hardhat argument -- Has no effect. 
  --verbose          	Enables Hardhat verbose logging 
  --version          	Shows hardhat's version. 


AVAILABLE TASKS:

  accounts 	Prints the list of accounts
  check    	Check whatever you need
  clean    	Clears the cache and deletes all artifacts
  compile  	Compiles the entire project, building all artifacts
  console  	Opens a hardhat console
  coverage 	Generates a code coverage report for tests
  flatten  	Flattens and prints contracts and their dependencies
  help     	Prints this message
  node     	Starts a JSON-RPC server on top of Hardhat Network
  run      	Runs a user-defined script after compiling the project
  test     	Runs mocha tests
  typechain	Generate Typechain typings for compiled contracts
  verify   	Verifies contract on Etherscan

To get help for a specific task run: npx hardhat help [task]

Done in 2.77s.
```
@codecov-commenter
Copy link

codecov-commenter commented Aug 11, 2021

Codecov Report

Merging #653 (53d18f6) into master (f0aa876) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #653   +/-   ##
=======================================
  Coverage   98.68%   98.68%           
=======================================
  Files          22       22           
  Lines         986      986           
=======================================
  Hits          973      973           
  Misses         13       13           
Impacted Files Coverage Δ
plugins/hardhat.plugin.js 93.18% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f0aa876...53d18f6. Read the comment docs.

Copy link
Member

@cgewecke cgewecke left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

@cgewecke cgewecke merged commit b162bef into sc-forks:master Aug 26, 2021
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.

3 participants