Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cyberrumor/ammo
/ functions
Functions
515 in github.com/cyberrumor/ammo
⨍
Functions
515
◇
Types & classes
51
↳
Endpoints
33
↓ 1 callers
Method
prompt
This returns the prompt for user input.
ammo/ui.py:55
↓ 1 callers
Method
save_order
Writes ammo.conf.
ammo/controller/mod.py:352
↓ 1 callers
Method
tag_all
(self, command: TagOperation, tag_name: str)
ammo/controller/mod.py:648
Method
__enter__
Return an instance of ammo's controller for tests to interact with.
test/test_tool_controller.py:64
Method
__enter__
Return an instance of ammo's controller for tests to interact with.
test/test_download_controller.py:31
Method
__enter__
Return an instance of ammo's controller for tests to interact with.
test/mod/mod_common.py:45
Method
__enter__
(self)
test/mod/mod_common.py:92
Method
__enter__
Return an instance of ammo's controller for tests to interact with.
test/bethesda/bethesda_common.py:47
Method
__enter__
(self)
test/bethesda/bethesda_common.py:94
Method
__exit__
Remove all the files and folders associated with our mock ammo instance. This ensures no reliance on a state created by a pre
test/test_tool_controller.py:71
Method
__exit__
Remove all the files and folders associated with our mock ammo instance. This ensures no reliance on a state created by a pre
test/test_download_controller.py:38
Method
__exit__
Remove all the files and folders associated with our mock ammo instance. This ensures no reliance on a state created by a pre
test/mod/mod_common.py:52
Method
__exit__
(self, *args, **kwargs)
test/mod/mod_common.py:95
Method
__exit__
Remove all the files and folders associated with our mock ammo instance. This ensures no reliance on a state created by a pre
test/bethesda/bethesda_common.py:54
Method
__exit__
(self, *args, **kwargs)
test/bethesda/bethesda_common.py:97
Method
__init__
(self)
test/test_tool_controller.py:59
Method
__init__
(self)
test/test_download_controller.py:26
Method
__init__
(self)
test/test_ui.py:25
Method
__init__
(self)
test/mod/mod_common.py:40
Method
__init__
(self, mod: Mod)
test/mod/mod_common.py:89
Method
__init__
(self)
test/bethesda/bethesda_common.py:42
Method
__init__
(self, mod: BethesdaMod)
test/bethesda/bethesda_common.py:91
Method
__init__
On UI init, map all presently defined public methods of the controller into a dictionary of commands.
ammo/ui.py:115
Method
__init__
(self, message)
ammo/lib.py:17
Method
__init__
( self, downloads_dir: Path, game: BethesdaGame, *keywords, interface_
ammo/controller/bethesda.py:152
Method
__init__
(self, mod: Mod | BethesdaMod)
ammo/controller/fomod.py:64
Method
__init__
(self, args)
ammo/controller/game.py:141
Method
__init__
(self, question: str)
ammo/controller/bool_prompt.py:14
Method
__post_init__
(self)
ammo/component.py:46
Method
__post_init__
(self)
ammo/component.py:91
Method
__post_init__
(self)
ammo/component.py:144
Method
__post_init__
(self)
ammo/component.py:276
Method
__post_init__
Validate that all paths are absolute.
ammo/controller/game.py:60
Method
__str__
(self)
test/test_ui.py:34
Method
__str__
Between every command, the screen will be cleared, and controller will be printed before the user is presented with the promp
ammo/ui.py:70
Method
__str__
Output a string representing all downloads, mods and plugins.
ammo/controller/bethesda.py:352
Method
__str__
(self)
ammo/controller/fomod.py:102
Method
__str__
Output a string representing all Downloads.
ammo/controller/download.py:49
Method
__str__
Output a string representing all Downloads and Tools.
ammo/controller/tool.py:50
Method
__str__
(self)
ammo/controller/game.py:309
Method
__str__
The screen will be cleared between every command, and controller will be printed before the user is presented with the prompt.
ammo/controller/bool_prompt.py:35
Method
__str__
Output a string representing all downloads, mods.
ammo/controller/mod.py:146
Method
_cast
(argument: str, T: typing.Type)
ammo/ui.py:391
Function
ammo_dir
()
test/test_game_controller.py:18
Function
args
(ammo_dir)
test/test_game_controller.py:28
Method
autocomplete
Returns the next possible autocompletion beginning with text. This should only be used for arguments of existing functions.
ammo/ui.py:80
Method
autocomplete
Autocomplete function desired by the readline interface. If we can complete a command, do it. Otherwise, attempt to return re
ammo/ui.py:126
Method
autocomplete
(self, text: str, state: int)
ammo/controller/bethesda.py:375
Method
autocomplete
(self, text: str, state: int)
ammo/controller/fomod.py:145
Method
autocomplete
This class is only ever used by stuff that will override this autocomplete function, so just do nothing here.
ammo/controller/download.py:72
Method
autocomplete
(self, text: str, state: int)
ammo/controller/tool.py:75
Method
autocomplete
(self, text: str, state: int)
ammo/controller/game.py:318
Method
autocomplete
Returns the next possible autocompletion beginning with text. This should only be used for arguments of existing functions.
ammo/controller/bool_prompt.py:43
Method
autocomplete
(self, text: str, state: int)
ammo/controller/mod.py:242
Method
delete_download
Removes specified download from the filesystem.
ammo/controller/download.py:249
Method
do_activate
Enabled components will be loaded by the game.
ammo/controller/bethesda.py:678
Method
do_b
Return to the previous page
ammo/controller/fomod.py:466
Method
do_deactivate
Disabled components will not be loaded by the game.
ammo/controller/bethesda.py:711
Method
do_delete
Removes the specified file from the filesystem.
ammo/controller/bethesda.py:952
Method
do_delete
Removes specified file from the filesystem.
ammo/controller/tool.py:289
Method
do_display
Change UI mode.
ammo/controller/mod.py:684
Method
do_install
Extract and manage an archive from ~/Downloads.
ammo/controller/tool.py:304
Method
do_log
Show debug log history.
ammo/controller/mod.py:836
Method
do_mods
Return to the mod controller.
ammo/controller/tool.py:311
Method
do_move
Larger numbers win conflicts.
ammo/controller/bethesda.py:753
Method
do_n
Advance to the next page
ammo/controller/fomod.py:475
Method
do_no
deny or reject.
ammo/controller/bool_prompt.py:58
Method
do_rename
Names may contain alphanumerics or underscores.
ammo/controller/tool.py:245
Method
do_tag
Add or remove tags from mods.
ammo/controller/mod.py:658
Method
do_tools
Manage tools.
ammo/controller/mod.py:1067
Method
do_view_files
Show mod files relative to the game directory.
ammo/controller/mod.py:777
Method
do_yes
affirm or accept.
ammo/controller/bool_prompt.py:51
Method
exit
Quit.
ammo/ui.py:379
Method
func
(self, i=i)
ammo/controller/fomod.py:160
Function
get_cached_archive
See if an extracted archive is cached. If it is, copy it to /tmp/ammo_test/MockGame/mods/. If it's not, extract it, cache it, then copy i
test/conftest.py:14
Method
get_mods
Instance a Mod class for each mod folder in the mod directory. This method is called by self.populate_mods which is defined in
ammo/controller/bethesda.py:330
Method
get_plugin_file
Get the plugin file from the winning mod.
ammo/controller/bethesda.py:898
Method
has_extra_folder
This method is called by self.do_install which is defined in the parent class ModController.
ammo/controller/bethesda.py:552
Method
has_extra_folder
The only assumption that the generic tool controller can reasonable make about whether extracted archives have an extra folder betwee
ammo/controller/tool.py:160
Method
help
Show this menu.
ammo/ui.py:313
Function
ids_hook
Fix up ids so it's slightly easier to tell which input buffers have bad completions. Note that this is still completely mangled.
test/mod/test_autocomplete.py:17
Function
ids_hook
Fix up ids so it's slightly easier to tell which input buffers have bad completions. Note that this is still completely mangled.
test/bethesda/test_bethesda_autocomplete.py:16
Function
mock_extract_archive
()
test/conftest.py:42
Function
mock_has_extra_folder
()
test/conftest.py:52
Function
mock_tool_has_extra_folder
()
test/test_tool_controller.py:21
Method
postcmd
(self)
test/test_ui.py:31
Method
postcmd
(self)
ammo/controller/fomod.py:129
Method
postcmd
(self)
ammo/controller/download.py:69
Method
postcmd
(self)
ammo/controller/tool.py:69
Method
postcmd
(self)
ammo/controller/game.py:305
Method
postcmd
This function is executed after every command. It returns whether the UI should break from repl.
ammo/controller/bool_prompt.py:25
Method
postcmd
(self)
ammo/controller/mod.py:239
Method
prompt
(self)
test/test_ui.py:28
Method
prompt
(self)
ammo/controller/fomod.py:126
Method
prompt
(self)
ammo/controller/download.py:66
Method
prompt
(self)
ammo/controller/tool.py:66
Method
prompt
(self)
ammo/controller/game.py:302
Method
prompt
This returns the prompt for user input.
ammo/controller/bool_prompt.py:19
Method
prompt
(self)
ammo/controller/mod.py:234
Method
remove_empty_dirs
(path)
test/test_tool_controller.py:88
← previous
next →
101–200 of 515, ranked by callers