Skip to content

Commit

Permalink
Fix file paths in ls command output
Browse files Browse the repository at this point in the history
  • Loading branch information
adambabik committed Dec 29, 2023
1 parent 8bac58f commit 779d901
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package cmd
import (
"bytes"
"encoding/json"
"path/filepath"
"strings"

"github.com/cli/cli/v2/pkg/iostreams"
Expand Down Expand Up @@ -59,7 +58,7 @@ func listCmd() *cobra.Command {
lines := block.Lines()
r := row{
Name: block.Name(),
File: filepath.Base(task.DocumentPath),
File: task.DocumentPath,
FirstCommand: shell.TryGetNonCommentLine(lines),
Description: block.Intro(),
Named: !block.IsUnnamed(),
Expand Down

0 comments on commit 779d901

Please sign in to comment.