class Fission::CommandLineParser

def is_snapshot_command?

Returns a Boolean of whether a snapshot command was given or not.

# => true
@cli.is_snapshot_command? ['snapshot', 'list']

# => false
@cli.is_snapshot_command? ['foo', 'bar']

Examples

determination.
command. This will use the @args instance variable to make the
Internal: Determines if the provided command is a snapshot related
def is_snapshot_command?
  @args.first == 'snapshot' &&
  @args.count > 1 &&
  @commands.include?(@args.take(2).join(' '))
end