(name string)
| 631 | displayCwd = env["cwd"] |
| 632 | } |
| 633 | displayCwd = filepath.ToSlash(displayCwd) |
| 634 | content := fmt.Sprintf( |
| 635 | "## Environment\n\n"+ |
| 636 | "- Working directory: %s\n"+ |
| 637 | "- Date: %s\n"+ |
| 638 | "- Platform: %s\n"+ |
| 639 | "- Shell: %s", |
| 640 | displayCwd, |
| 641 | nowForPrompt().Format("2006-01-02"), |
| 642 | env["platform"], |
| 643 | env["shell"], |
| 644 | ) |
| 645 | |
| 646 | return PromptSection{ |
| 647 | Name: "environment-attachment", |
no test coverage detected