Skip to content

fix command in readme#1583

Merged
belav merged 1 commit intobelav:mainfrom
kusl:9034725985-patch-1
Apr 23, 2025
Merged

fix command in readme#1583
belav merged 1 commit intobelav:mainfrom
kusl:9034725985-patch-1

Conversation

@9034725985
Copy link
Copy Markdown
Contributor

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 Format files.
check 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:

$ 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: [email protected]:kusl/MyImapDownloader.git
  Push  URL: [email protected]: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: [email protected]:kusl/MyImapDownloader.git
  Push  URL: [email protected]: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$ 

`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: [email protected]:kusl/MyImapDownloader.git
  Push  URL: [email protected]: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: [email protected]:kusl/MyImapDownloader.git
  Push  URL: [email protected]: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$ 

```
9034725985 added a commit to kusl/MyImapDownloader that referenced this pull request Apr 23, 2025
also make some manual changes such as add qodana.yaml for jetbrains rider and delete comments for code that claude or other llm generated

featured in belav/csharpier#1583

```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: [email protected]:kusl/MyImapDownloader.git
  Push  URL: [email protected]: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: [email protected]:kusl/MyImapDownloader.git
  Push  URL: [email protected]: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$
```
@belav
Copy link
Copy Markdown
Owner

belav commented Apr 23, 2025

Can't believe I missed updating that, thanks for the fix!

@belav belav merged commit c9231f3 into belav:main Apr 23, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants