Skip to content

Possibly unused code #63

@DannyBen

Description

@DannyBen

This code:

https://github.com/DannyBen/bashly/blob/fb0f5133cfbbd3b7e27ad52f5dfea4e0b72516c1/lib/bashly/views/command/run.erb#L17-L24

Seems to be unused (for --version and --help), since it seems that for the root command these flags are intercepted here:

https://github.com/DannyBen/bashly/blob/fb0f5133cfbbd3b7e27ad52f5dfea4e0b72516c1/lib/bashly/views/command/fixed_flags_filter.erb#L1-L22

Changing the offending code to this, does not break any test:

  <%= condition %> [[ $action == "root" ]]; then
    root_command
  fi

Consider making the change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorInternal improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions