Skip to content

Commit 5a9999d

Browse files
authored
Merge pull request #137 from Pkylas007/mta-4798-list-lang
MTA-4798: Support for Listing Languages in 7.3.0
2 parents 80ca5cc + 45f5da3 commit 5a9999d

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

docs/topics/mta-cli-analyze.adoc

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Extracting the list of dependencies from compiled Java binaries is not always po
1717

1818
[source,terminal,subs="attributes+"]
1919
----
20-
{mta-cli} analyze --input=<path_to_source_code> --output=<path_to_output_directory>
20+
{mta-cli} analyze --input <path_to_source_code> --output <path_to_output_directory>
2121
----
2222

2323
All flags:
@@ -50,6 +50,9 @@ Flags:
5050
--jaeger-endpoint (string) Jaeger endpoint to collect traces.
5151
--json-output Create analysis and dependency
5252
output as JSON.
53+
--list-languages List all langauges in the source
54+
application. This flag is not
55+
supported for binary applications.
5356
--list-sources List available migration sources.
5457
--list-targets List available migration targets.
5558
-l, --label-selector (string) Run rules based on specified label
@@ -103,17 +106,24 @@ The list of flags above does not include the `--bulk` flag because this flag is
103106
.Usage example
104107

105108
. Get an example application to run analysis on.
109+
. List all languages in the source application:
110+
+
111+
[source,terminal,subs="attributes+"]
112+
----
113+
$ {mta-cli} analyze --input <path_to_application> --list-languages
114+
----
115+
+
106116
. List available target technologies.
107117
+
108118
[source,terminal,subs="attributes+"]
109119
----
110-
{mta-cli} analyze --list-targets
120+
$ {mta-cli} analyze --list-targets
111121
----
112122
. Run an analysis with a specified target technology, for example `cloud-readiness`.
113123
+
114124
[source,terminal,subs="attributes+"]
115125
----
116-
{mta-cli} analyze --input=<path-to/example-applications/example-1> --output=<path-to-output-dir> --target=cloud-readiness
126+
$ {mta-cli} analyze --input <path-to/example-applications/example-1> --output <path-to-output-dir> --target cloud-readiness
117127
----
118128
. Several analysis reports are created in your specified output path:
119129
+

docs/topics/mta-cli-args.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ a|`-l`, `--label-selector`
7676
|String
7777
|Flag to run rules based on a specified label selector expression.
7878

79+
a|`--list-languages`
80+
|
81+
|Flag to list available languages in a source application.
82+
7983
a|`--list-providers`
8084
|
8185
|Flag to list available supported providers.

docs/topics/mta-cli-run-single-app.adoc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,28 @@
66
[id="mta-cli-run-single-app_{context}"]
77
= Running the {ProductShortName} {CLINameTitle} against an application
88

9-
You can run the {ProductFullName} {CLINameTitle} against an application.
9+
You can run the {ProductFullName} {CLINameTitle} against an application.
10+
11+
:FeatureName: The `--list-languages` flag
12+
include::developer-preview-feature.adoc[]
1013

1114
.Procedure
1215

1316
. Open a terminal and navigate to the `<{ProductShortName}_HOME>/` directory.
1417

18+
. List all the languages in the source application by using the following command:
19+
+
20+
[source,terminal,subs="attributes+"]
21+
----
22+
$ ./{mta-cli} analyze --input <path_to_application> --list-languages
23+
----
24+
The listed langauages that do not have a supported provider require a custom rule set and the `--override-provider-settings` flag for analysis.
25+
+
26+
[NOTE]
27+
====
28+
The `--list-languages` flag is supported only for source applications.
29+
====
30+
+
1531
. Run the `{mta-cli}` script, or `{mta-cli}.exe` for Windows, and specify the appropriate arguments:
1632

1733
+

0 commit comments

Comments
 (0)