Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make files upload output cut n paste friendly #891

Closed
wants to merge 7 commits into from

Conversation

willief
Copy link
Contributor

@willief willief commented Oct 24, 2023

Description

Summary generated by Reviewpad on 03 Nov 23 09:40 UTC

This pull request includes multiple patches to update the files.rs file in the sn_cli subcommands. The changes primarily involve updating the print statements and log messages related to file uploads. Some changes attempt to address specific issues mentioned in a forum thread. The patches also include whitespace cleanup and formatting changes, such as surrounding the file names with double quotes in print statements for better readability and user-friendliness.

#890

Make sharing upload results as easy as possible and encourage others to test downloads.

Change


  •      Uploaded Files            *
    

Uploaded History of Stuff 1980-2023.pdf to 1d1e081fbf7b37f2156f3f428ead2ecb31f7b91b0a4239564eb426cffca65e0f
to


  •      Uploaded Files            *
    

"History of Stuff 1980-2023.pdf" 1d1e081fbf7b37f2156f3f428ead2ecb31f7b91b0a4239564eb426cffca65e0f

This output then can be pasted directly into safe files download for immediate testing or can be quickly posted to an Uploads wiki page on the forum.

willief and others added 5 commits October 24, 2023 00:00
try again
…er-friendly.

-                println!("Uploaded {} to {:x}", file_name, addr);
+                println!("\"{}\" {:x}", file_name, addr);
                info!("Uploaded {} to {:x}", file_name, addr);
@reviewpad reviewpad bot requested a review from jacderida October 24, 2023 01:57
@reviewpad reviewpad bot added Small Pull request is small waiting-for-review labels Oct 24, 2023
@reviewpad
Copy link

reviewpad bot commented Oct 24, 2023

Reviewpad Report

‼️ Errors

  • Unconventional commit detected: 'Update files.rs

naive attempt to address issue from https://safenetforum.org/t/heapnet2-testnet-12-10-23/38749/460?u=southside' (a27d99f)

  • Unconventional commit detected: 'Update files.rs

try again' (482648c)

  • Unconventional commit detected: 'reverse changes to !info line 340' (db34bc9)
  • Unconventional commit detected: 'clean up whitespace' (adc13e9)
  • Unconventional commit detected: 'Surround file_name with double quotes to make it more readable and user-friendly.
  •            println!("Uploaded {} to {:x}", file_name, addr);
    
  •            println!("\"{}\" {:x}", file_name, addr);
              info!("Uploaded {} to {:x}", file_name, addr);' (420c907b04b167339d1025210794aff92d90bb50)
    
  • Unconventional commit detected: 'Merge branch 'main' into main' (df6dbdd)
  • Unconventional commit detected: 'Merge branch 'main' into main' (135e37d)
  • Unconventional title detected: 'Make files upload output cut n paste friendly' illegal 'M' character in commit message type: col=00

⚠️ Warnings

  • Please rebase your pull request on the latest changes

@joshuef
Copy link
Contributor

joshuef commented Oct 25, 2023

Thanks @willief this is looking like a nice wee improvement.

One of wee things: We use https://www.conventionalcommits.org/en/v1.0.0/ for commit messages. So would you mind to rebase the changes together into one commit using the above format?

eg chore(cli): make file upload output cut n paste friendly

@joshuef
Copy link
Contributor

joshuef commented Nov 3, 2023

merged via #891

@joshuef joshuef closed this Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Small Pull request is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants