HelmFetch extends HelmCommand<HelmFetch> implements CLI.WithCerts<HelmFetch>,
                   CLI.WithRepo<HelmFetch> { public HelmFetch untarInto(String directory) { return withFlags(Argument.of("--untardir", directory)); } HelmFetch(String... charts);   HelmFetch(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env); HelmFetch development(); HelmFetch prov(); HelmFetch untar(); HelmFetch untarInto(String directory); HelmFetch untarInto(File directory); @Override HelmFetch newInstance(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env);  }
@Test public void shouldAddUntarDirOption() { HelmFetch command = Helm.fetch("foo"); HelmFetch copy = command.untarInto("bar"); assertThat(copy, is(not(sameInstance(command)))); assertCommand(copy, "fetch", "--untardir", "bar", "foo"); }
@Test public void shouldAddUntarDirFileOption() { HelmFetch command = Helm.fetch("foo"); HelmFetch copy = command.untarInto(new File("/temp")); assertThat(copy, is(not(sameInstance(command)))); assertCommand(copy, "fetch", "--untardir", "/temp", "foo"); }