Skip to content

Commit eb5ddc0

Browse files
authored
Fix incorrect link to swift doc and swift package-registry login command (#29096)
Fixes a few mistakes in the Swift package registry documentation. Syntax for the `package-registry login` command can be found [here](https://github.com/apple/swift-package-manager/blob/main/Documentation/PackageRegistry/PackageRegistryUsage.md#registry-authentication). I was not sure the best way to compress all of that information, so I just focused on making sure the incorrect `package-registry set` command was fixed.
1 parent 6be3fda commit eb5ddc0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/content/usage/packages/overview.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The following package managers are currently supported:
4242
| [PyPI](usage/packages/pypi.md) | Python | `pip`, `twine` |
4343
| [RPM](usage/packages/rpm.md) | - | `yum`, `dnf`, `zypper` |
4444
| [RubyGems](usage/packages/rubygems.md) | Ruby | `gem`, `Bundler` |
45-
| [Swift](usage/packages/rubygems.md) | Swift | `swift` |
45+
| [Swift](usage/packages/swift.md) | Swift | `swift` |
4646
| [Vagrant](usage/packages/vagrant.md) | - | `vagrant` |
4747

4848
**The following paragraphs only apply if Packages are not globally disabled!**

docs/content/usage/packages/swift.en-us.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ To work with the Swift package registry, you need to use [swift](https://www.swi
2626
To register the package registry and provide credentials, execute:
2727

2828
```shell
29-
swift package-registry set https://gitea.example.com/api/packages/{owner}/swift -login {username} -password {password}
29+
swift package-registry set https://gitea.example.com/api/packages/{owner}/swift
30+
swift package-registry login https://gitea.example.com/api/packages/{owner}/swift --username {username} --password {password}
3031
```
3132

3233
| Placeholder | Description |

0 commit comments

Comments
 (0)