Verified Commit cc809665 authored by Michael Angelo Rivera's avatar Michael Angelo Rivera 2️⃣ Committed by GitLab
Browse files

fix(cli): point the glab launcher at the flat command surface

parent 73f244db
Loading
Loading
Loading
Loading
+2 −2
Changes for crates/orbit-cli/src/commands/setup/spec.rs: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ static TEXTS: LazyLock<SetupTexts> = LazyLock::new(|| {
});

pub(crate) const DIRECT_LAUNCHER: &str = "orbit";
pub(crate) const GLAB_LAUNCHER: &str = "glab orbit local";
pub(crate) const GLAB_LAUNCHER: &str = "glab orbit";

pub(crate) fn launcher() -> &'static str {
    static LAUNCHER: LazyLock<&'static str> = LazyLock::new(|| {
@@ -274,7 +274,7 @@ mod tests {
    fn launcher_substitution_renders_both_distributions() {
        for (launcher, expected) in [
            (DIRECT_LAUNCHER, "`orbit grep"),
            (GLAB_LAUNCHER, "`glab orbit local grep"),
            (GLAB_LAUNCHER, "`glab orbit grep"),
        ] {
            let rendered = render_instructions(launcher);
            assert!(rendered.contains(expected), "{launcher}: {rendered}");
+2 −2
Changes for docs/source/local/troubleshooting.md: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ reported as `Table 'Definition' does not exist`.
Resolution: Index the repository first:

```shell
glab orbit local index /path/to/your/repo
glab orbit index /path/to/your/repo
```

## `IO Error: Could not set lock on file`
@@ -82,7 +82,7 @@ Resolution: Update the managed binary, then start the stdio MCP server:

```shell
glab orbit --update
glab orbit local mcp serve
glab orbit mcp serve
```

If you installed `orbit` directly, rerun the installer from the
+2 −2
Changes for docs/source/remote/troubleshooting.md: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ When working with GitLab Orbit Remote, you might encounter the following issues.

## Exit code 2

Symptoms: `glab orbit remote` commands exit with code 2.
Symptoms: `glab orbit` remote commands exit with code 2.

Cause: The `knowledge_graph` feature flag is not enabled for your
namespace or instance.
@@ -40,7 +40,7 @@ Resolution: Contact your GitLab administrator to enable the

## Exit code 3

Symptoms: `glab orbit remote` commands exit with code 3.
Symptoms: `glab orbit` remote commands exit with code 3.

Cause: You are not authenticated with the GitLab CLI.