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

Refactor fs subcommands into fs command #1150

Merged
merged 3 commits into from
May 16, 2016
Merged

Refactor fs subcommands into fs command #1150

merged 3 commits into from
May 16, 2016

Conversation

grubernaut
Copy link
Contributor

Refactors nomad fs command to eliminate fs subcommands.
Automatically displays the file, if the path specified is a file; lists
the directory if the path is a directory; or displays stat information
if the -stat flag is set.

Currently running nomad fs ls to find a file, then running the exact
same command with the exception of cat instead of ls is time
consuming and awkward. This allows operational testing to be greatly
enhanced, and makes our lives so much better.

Refactors `nomad fs` command to eliminate `fs` subcommands.
Automatically displays the file, if the path specified is a file; lists
the directory if the path is a directory; or displays stat information
if the `-stat` flag is set.

Currently running `nomad fs ls` to find a file, then running the exact
same command with the exception of `cat` instead of `ls` is time
consuming and awkward. This allows operational testing to be greatly
enhanced, and makes our lives so much better.
@diptanu
Copy link
Contributor

diptanu commented May 5, 2016

@grubernaut Can you also please update the docs for this change?

@grubernaut
Copy link
Contributor Author

@diptanu done!

)

type FSCommand struct {
Meta
}

func (f *FSCommand) Help() string {
return "This command is accessed by using one of the subcommands below."
helpText := `
Usage: nomad fs <alloc-id> <path>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix indents to be in-line with the rest of the commands

@dadgar
Copy link
Contributor

dadgar commented May 11, 2016

LGTM

@grubernaut
Copy link
Contributor Author

@dadgar PTAL

@dadgar dadgar merged commit 9272de8 into master May 16, 2016
@dadgar dadgar deleted the f-fs-command branch May 16, 2016 18:05
cgbaker pushed a commit that referenced this pull request Nov 26, 2018
use this for volume names in drivers/rkt to address #1150
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants