Sitelet https://github.com/Jacko1394/csharpier/commit/c9231f32ae91f6a560e3eefa5f733d9a75b1c53c
Skip to content

Commit c9231f3

Browse files
authored
fix command in readme (belav#1583)
`csharpier .` does not work '.' was not matched. Did you mean one of the following? -h Required command was not provided. Unrecognized command or argument '.'. Description: Usage: CSharpier [command] [options] Options: --version Show version information -?, -h, --help Show help and usage information Commands: format <directoryOrFile> Format files. check <directoryOrFile> Check that files are formatted. Will not write any changes. pipe-files Keep csharpier running so that multiples files can be piped to it via stdin. server Run CSharpier as a server so that multiple files may be formatted. full quote: ```bash $ cd ~/src/dotnet/MyImapDownloader/; git status; git remote show origin; git fetch; git status; time csharpier .; git status; On branch main Untracked files: (use "git add <file>..." to include in what will be committed) qodana.yaml nothing added to commit but untracked files present (use "git add" to track) * remote origin Fetch URL: git@github.com:kusl/MyImapDownloader.git Push URL: git@github.com:kusl/MyImapDownloader.git HEAD branch: main Remote branch: main tracked Local ref configured for 'git push': main pushes to main (up to date) On branch main Untracked files: (use "git add <file>..." to include in what will be committed) qodana.yaml nothing added to commit but untracked files present (use "git add" to track) '.' was not matched. Did you mean one of the following? -h Required command was not provided. Unrecognized command or argument '.'. Description: Usage: CSharpier [command] [options] Options: --version Show version information -?, -h, --help Show help and usage information Commands: format <directoryOrFile> Format files. check <directoryOrFile> Check that files are formatted. Will not write any changes. pipe-files Keep csharpier running so that multiples files can be piped to it via stdin. server Run CSharpier as a server so that multiple files may be formatted. real 0m0.123s user 0m0.093s sys 0m0.028s On branch main Untracked files: (use "git add <file>..." to include in what will be committed) qodana.yaml nothing added to commit but untracked files present (use "git add" to track) kushal@kusfedora2024:~/src/dotnet/MyImapDownloader$ cd ~/src/dotnet/MyImapDownloader/; git status; git remote show origin; git fetch; git status; time csharpier check .; git status; time csharpier format .; git status; On branch main Untracked files: (use "git add <file>..." to include in what will be committed) qodana.yaml nothing added to commit but untracked files present (use "git add" to track) * remote origin Fetch URL: git@github.com:kusl/MyImapDownloader.git Push URL: git@github.com:kusl/MyImapDownloader.git HEAD branch: main Remote branch: main tracked Local ref configured for 'git push': main pushes to main (up to date) On branch main Untracked files: (use "git add <file>..." to include in what will be committed) qodana.yaml nothing added to commit but untracked files present (use "git add" to track) Error ./Directory.Packages.props - Was not formatted. The file did not end with a single newline. Error ./MyImapDownloader/MyImapDownloader.csproj - Was not formatted. ----------------------------- Expected: Around Line 2 ----------------------------- <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> ----------------------------- Actual: Around Line 2 ----------------------------- <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> Error ./MyImapDownloader/ImapConfiguration.cs - Was not formatted. The file did not end with a single newline. Error ./MyImapDownloader/EmailDownloadException.cs - Was not formatted. The file did not end with a single newline. Error ./MyImapDownloader/DownloadOptions.cs - Was not formatted. The file did not end with a single newline. Error ./MyImapDownloader/Program.cs - Was not formatted. ----------------------------- Expected: Around Line 1 ----------------------------- using CommandLine; using Microsoft.Extensions.DependencyInjection; ----------------------------- Actual: Around Line 1 ----------------------------- using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; Error ./MyImapDownloader/EmailDownloadService.cs - Was not formatted. The file did not end with a single newline. Formatted 7 files in 1424ms. real 0m1.516s user 0m4.071s sys 0m0.156s On branch main Untracked files: (use "git add <file>..." to include in what will be committed) qodana.yaml nothing added to commit but untracked files present (use "git add" to track) Formatted 7 files in 1452ms. real 0m1.534s user 0m3.911s sys 0m0.138s On branch main Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: Directory.Packages.props modified: MyImapDownloader/DownloadOptions.cs modified: MyImapDownloader/EmailDownloadException.cs modified: MyImapDownloader/EmailDownloadService.cs modified: MyImapDownloader/ImapConfiguration.cs modified: MyImapDownloader/MyImapDownloader.csproj modified: MyImapDownloader/Program.cs Untracked files: (use "git add <file>..." to include in what will be committed) qodana.yaml no changes added to commit (use "git add" and/or "git commit -a") kushal@kusfedora2024:~/src/dotnet/MyImapDownloader$ ```
1 parent 4b30a17 commit c9231f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dotnet tool install csharpier -g
1212
```
1313
Then format the contents of a directory and its children with the following command.
1414
```bash
15-
csharpier .
15+
csharpier format .
1616
```
1717

1818
CSharpier can also format [on save in your editor](https://csharpier.com/docs/Editors) or as a [pre-commit hook](https://csharpier.com/docs/Pre-commit). Then you can ensure code was formatted with a [CI/CD tool](https://csharpier.com/docs/ContinuousIntegration).

0 commit comments

Comments
 (0)