-
-
Notifications
You must be signed in to change notification settings - Fork 600
Improve documentation #4467
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
base: develop
Are you sure you want to change the base?
Improve documentation #4467
Changes from 3 commits
b9954a6
a4d9219
bc1c655
6c46ab4
3c251f0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,20 @@ Comparing Progress Message Options | |
This inputs the scan results from ``sample.json``, runs the post-scan plugin ``--classify`` and | ||
outputs the results for this scan to ``sample_2.json``. | ||
|
||
You can also convert the input .json file to other output format | ||
without using any scan option. | ||
|
||
For instance,:: | ||
|
||
scancode --from-json sample.json --yaml sample.yml | ||
|
||
The above command takes ``sample.json`` as input and generates file in .yml formats. | ||
chinyeungli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
.. note:: | ||
|
||
This only works for options that require only the input JSON file; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Generally the post-scan options (like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @AyanSinhaMahapatra I am wondering is it true that all the "Pre-Scan" options cannot be run with For the post-scans, I want to verify that if an option's dependencies are missing, the command still executes without errors, it just won’t return results related to the missing dependencies, correct? |
||
options that rely on other files or source code will not work. | ||
|
||
---- | ||
|
||
.. _max_in_memory_option: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ | |
All Available Options | ||
===================== | ||
|
||
This section contains an exhaustive list of all ScanCode options, arranged in various sections. | ||
This section contains an exhaustive list of all ScanCode-Toolkit options, | ||
arranged in various sections. | ||
The sections are as follows: | ||
|
||
- Basic Scan Options | ||
|
@@ -13,25 +14,12 @@ The sections are as follows: | |
- Pre-Scan Options | ||
- Post-Scan Options | ||
|
||
There's also another section for ``extractcode`` options. | ||
|
||
The order of the sections and all their options is the same as in the :ref:`cli_help_text`, | ||
available in the command line. | ||
|
||
.. _cli_basic: | ||
|
||
.. include:: /rst_snippets/basic_options.rst | ||
|
||
---- | ||
|
||
.. include:: /rst_snippets/extract.rst | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure we want to remove these sections, they are pretty useful IMHO There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @AyanSinhaMahapatra I'm removing this from the list-options since extract.rst is already included in other-commands.rst. Having it in both places seem redundant. |
||
|
||
---- | ||
|
||
.. include:: /rst_snippets/scancode-reindex-licenses.rst | ||
|
||
---- | ||
|
||
.. include:: /rst_snippets/core_options.rst | ||
|
||
---- | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,12 @@ All "Core" Scan Options | |
including and below the starting point. INTEGER | ||
must be positive or zero for no limit. | ||
[Default: 0] | ||
|
||
|
||
.. note:: | ||
|
||
For optimal performance, it's recommended to set the `-n, --processes` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @chinyeungli this was merged as default with #4104
This explanation is nice, but we need to modify this a bit. We should probably have a seperate section on performance and explanations, but this can be done a bit more explicitly as a sub-task of #4069 eith detailed explanations and recommendations on CPU/memory |
||
option to "number of CPU cores minus 1". | ||
For example, on a quad-core/eight-thread machine, use ``-n 7``. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.