import { CliBranch } from '@alwaysai/alwayscli';
import { pullAppReleaseCliLeaf } from './pull';
import { getAppReleaseHistoryCliLeaf } from './list';
import { ALWAYSAI_SHOW_HIDDEN } from '../../environment';

export const release = CliBranch({
  name: 'release',
  description: 'Manage application releases',
  hidden: !ALWAYSAI_SHOW_HIDDEN,
  subcommands: [pullAppReleaseCliLeaf, getAppReleaseHistoryCliLeaf]
});
