Skip to content

Commit 45f5da3

Browse files
author
Prabha Kylasamiyer Sundara Rajan
committed
MTA-4789: Support for Listing Languages in 7.3.0
1 parent 0100c59 commit 45f5da3

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
@@ -13,7 +13,7 @@
1313

1414
[source,terminal,subs="attributes+"]
1515
----
16-
{mta-cli} analyze --input=<path_to_source_code> --output=<path_to_output_directory>
16+
{mta-cli} analyze --input <path_to_source_code> --output <path_to_output_directory>
1717
----
1818

1919
All flags:
@@ -46,6 +46,9 @@ Flags:
4646
--jaeger-endpoint (string) Jaeger endpoint to collect traces.
4747
--json-output Create analysis and dependency
4848
output as JSON.
49+
--list-languages List all langauges in the source
50+
application. This flag is not
51+
supported for binary applications.
4952
--list-sources List available migration sources.
5053
--list-targets List available migration targets.
5154
-l, --label-selector (string) Run rules based on specified label
@@ -99,17 +102,24 @@ The list of flags above does not include the `--bulk` flag because this flag is
99102
.Usage example
100103

101104
. Get an example application to run analysis on.
105+
. List all languages in the source application:
106+
+
107+
[source,terminal,subs="attributes+"]
108+
----
109+
$ {mta-cli} analyze --input <path_to_application> --list-languages
110+
----
111+
+
102112
. List available target technologies.
103113
+
104114
[source,terminal,subs="attributes+"]
105115
----
106-
{mta-cli} analyze --list-targets
116+
$ {mta-cli} analyze --list-targets
107117
----
108118
. Run an analysis with a specified target technology, for example `cloud-readiness`.
109119
+
110120
[source,terminal,subs="attributes+"]
111121
----
112-
{mta-cli} analyze --input=<path-to/example-applications/example-1> --output=<path-to-output-dir> --target=cloud-readiness
122+
$ {mta-cli} analyze --input <path-to/example-applications/example-1> --output <path-to-output-dir> --target cloud-readiness
113123
----
114124
. Several analysis reports are created in your specified output path:
115125
+

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)