FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

deploy: 94e9190e5b5f13a0f24ee3973cb7ff950799b320 · pythonnative/pythonnative@4ac45ec · GitHub

Commit 4ac45ec

Browse files
committed
deploy: 94e9190
1 parent 96d7c3e commit 4ac45ec

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

‎api/cli/index.html‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3690,7 +3690,10 @@ <h2 id="subcommands">Subcommands<a class="headerlink" href="#subcommands" title=
36903690
an iOS release build to App Store Connect. See
36913691
<a href="../../guides/building-for-release/">Building for release</a>.</li>
36923692
<li><code>pn app-id android|ios</code>: print the resolved application id (Android)
3693-
or bundle id (iOS), handy for scripts and CI.</li>
3693+
or bundle id (iOS), handy for scripts and CI. Flag: <code>--json</code> to print
3694+
a <code>{"platform": "...", "app_id": "..."}</code> object to stdout for
3695+
scripting; the config
3696+
error goes to stderr instead, and a missing config still exits 1.</li>
36943697
<li><code>pn clean</code>: remove the local <code>build/</code> directory.</li>
36953698
<li><code>pn --version</code> (<code>-V</code>): print the installed PythonNative version.</li>
36963699
</ul>
@@ -3729,7 +3732,7 @@ <h2 id="subcommands">Subcommands<a class="headerlink" href="#subcommands" title=
37293732
<li><code>pn build android|ios</code>: produce standalone artifacts (signed APK/AAB,
37303733
or an iOS archive/IPA, optionally uploaded to App Store Connect).</li>
37313734
<li><code>pn app-id android|ios</code>: print the resolved application/bundle id
3732-
(handy for scripts and CI).</li>
3735+
(handy for scripts and CI), as plain text or as JSON with <code>--json</code>.</li>
37333736
<li><code>pn clean</code>: remove the local <code>build/</code> directory.</li>
37343737
</ul>
37353738
<p>The heavy lifting lives in the <code>pythonnative.project</code> and
@@ -4073,6 +4076,15 @@ <h2 id="pythonnative.cli.pn.app_id_command" class="doc doc-heading">
40734076
<div class="doc doc-contents ">
40744077

40754078
<p>Print the resolved application id (Android) or bundle id (iOS).</p>
4079+
<p>With <code>--json</code>, stdout carries one object,
4080+
<code>{"platform": "...", "app_id": "..."}</code>, and nothing else; the config
4081+
error goes to stderr instead so stdout stays parseable. Keys may be
4082+
added to that object later, but none will be removed or renamed, so
4083+
a caller reading <code>app_id</code> keeps working.</p>
4084+
<p>A missing or invalid config still exits 1, with or without the flag.
4085+
That differs from <code>pn devices --json</code>, which exits 0 on an empty
4086+
result, because "no devices" is a valid answer to a query whereas
4087+
an unreadable config means there is no id to report at all.</p>
40764088

40774089

40784090
<p><span class="doc-section-title">Parameters:</span></p>
@@ -4095,7 +4107,7 @@ <h2 id="pythonnative.cli.pn.app_id_command" class="doc doc-heading">
40954107
</td>
40964108
<td>
40974109
<div class="doc-md-description">
4098-
<p>Parsed namespace with <code>platform</code>.</p>
4110+
<p>Parsed namespace with <code>platform</code> and optional <code>json</code>.</p>
40994111
</div>
41004112
</td>
41014113
<td>

‎search/search_index.json‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL