Commit c9231f3
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments