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

rclone completion nushell #6706

Open
kouhe3 opened this issue Jan 17, 2023 · 1 comment
Open

rclone completion nushell #6706

kouhe3 opened this issue Jan 17, 2023 · 1 comment

Comments

@kouhe3
Copy link

kouhe3 commented Jan 17, 2023

Hi developers!

I want to use rclone completion in nushell.
like this:

image

image

I tried to write a short piece of code to implement the content in screenshots.

export extern "rclone lsf" [
      --absolute           # Put a leading / in front of path names
      --csv                # Output in CSV format
      --dir-slash(-d)        # Append a slash to directory names (default true)
      --dirs-only          # Only list directories
      --files-only         # Only list files
      --format(-F): string      # Output format - see  help for details (default "p")
      --hash h             # Use this hash when h is used in the format MD5|SHA-1|DropboxHash (default "md5")
      --help(-h)               # help for lsf
      --recursive(-R)          # Recurse into the listing
      --separator(-s): string   # Separator for the items in the format (default ";")
  ]

But I'm not familiar with Nushell codes.

I hope someone can complete this rclone completion nushell

@ncw
Copy link
Member

ncw commented Jan 17, 2023

This will be easy to implement once spf13/cobra#1857 has been merged.

Cobra does all the work generating these completion scripts - once the work is done upstream then it is easy to include it in rclone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants