Package com.netflix

Class CLI

java.lang.Object
com.netflix.CLI
All Implemented Interfaces:
Callable<Integer>

public class CLI extends Object implements Callable<Integer>
CLI application to manage Netflix movies using picocli. This CLI allows users to add movies, add reviews, list all movies, and search for movies by various criteria such as name, year, category, or director.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) boolean
    Option to display the help message for the CLI.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CLI()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    Command to add a new movie.
    (package private) void
    addReview(String showId, String comment)
    Command to add a review to a movie.
    Default method that is executed if no valid subcommand is provided.
    (package private) void
    getMovieList(int limit, int page)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • helpRequested

      boolean helpRequested
      Option to display the help message for the CLI.
  • Constructor Details

    • CLI

      public CLI()
  • Method Details

    • addMovie

      void addMovie()
      Command to add a new movie. This is a placeholder and should be extended with actual implementation.
    • addReview

      void addReview(String showId, String comment)
      Command to add a review to a movie. This is a placeholder and should be extended with actual implementation.
    • getMovieList

      void getMovieList(int limit, int page)
    • call

      public Integer call() throws Exception
      Default method that is executed if no valid subcommand is provided. Displays a usage message.
      Specified by:
      call in interface Callable<Integer>
      Returns:
      Exit code (1 indicates failure).
      Throws:
      Exception - if an error occurs during execution.