Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1"""LICENSE 

2Copyright 2018 Hermann Krumrey <hermann@krumreyh.com> 

3 

4This file is part of bokkichat. 

5 

6bokkichat is free software: you can redistribute it and/or modify 

7it under the terms of the GNU General Public License as published by 

8the Free Software Foundation, either version 3 of the License, or 

9(at your option) any later version. 

10 

11bokkichat is distributed in the hope that it will be useful, 

12but WITHOUT ANY WARRANTY; without even the implied warranty of 

13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 

14GNU General Public License for more details. 

15 

16You should have received a copy of the GNU General Public License 

17along with bokkichat. If not, see <http://www.gnu.org/licenses/>. 

18LICENSE""" 

19 

20from bokkichat.settings.Settings import Settings 

21 

22 

23class CliSettings(Settings): 

24 """ 

25 Class that defines a Settings object for a CLI connection 

26 """ 

27 

28 # noinspection PyMethodMayBeStatic 

29 def serialize(self) -> str: 

30 """ 

31 Serializes the settings to a string 

32 :return: The serialized Settings object 

33 """ 

34 return "" 

35 

36 @classmethod 

37 def deserialize(cls, _: str) -> "CliSettings": 

38 """ 

39 Deserializes a string and generates a Settings object from it 

40 :param _: The serialized string 

41 :return: The deserialized Settings object 

42 """ 

43 return cls() 

44 

45 @classmethod 

46 def prompt(cls) -> Settings: 

47 """ 

48 Prompts the user for input to generate a Settings object 

49 :return: The generated settings object 

50 """ 

51 return CliSettings()